public_html/wp-content/plugins/wp-statistics/wp-statistics.php
// Call the add/render functions at the appropriate times.
Call the add/render functions at the appropriate times.
Call the add / render functions at the appropriate times .
function wp_statistics_load_edit_init() {
		GLOBAL $WP_Statistics;
		$read_cap = wp_statistics_validate_capability( $WP_Statistics->get_option('read_capability', 'manage_options') );
		if( current_user_can( $read_cap ) && $WP_Statistics->get_option('pages') && !$WP_Statistics->get_option('disable_column') ) {
			$post_types = (array)get_post_types( array( 'show_ui' => true ), 'object' );
			foreach( $post_types as $type ) {
				add_action( 'manage_' . $type->name . '_posts_columns', 'wp_statistics_add_column', 10, 2 );
				add_action( 'manage_' . $type->name . '_posts_custom_column', 'wp_statistics_render_column', 10, 2 );
			}
		}
	}
function wp_statistics_load_edit_init ( ) { GLOBAL $ WP_Statistics ; $ read_cap = wp_statistics_validate_capability ( $ WP_Statistics -> get_option ( 'read_capability' , 'manage_options' ) ) ; if ( current_user_can ( $ read_cap ) && $ WP_Statistics -> get_option ( 'pages' ) && ! $ WP_Statistics -> get_option ( 'disable_column' ) ) { $ post_types = ( array ) get_post_types ( array ( 'show_ui' => true ) , 'object' ) ; foreach ( $ post_types as $ type ) { add_action ( 'manage_' . $ type -> name . '_posts_columns' , 'wp_statistics_add_column' , 10 , 2 ) ; add_action ( 'manage_' . $ type -> name . '_posts_custom_column' , 'wp_statistics_render_column' , 10 , 2 ) ; } } }
Call the add/render functions at the appropriate times.
Call the add / render functions at the appropriate times .