public_html/wp-content/plugins/wp-statistics/wp-statistics.php
// Add a settings link to the plugin list.
Add a settings link to the plugin list.
Add a settings link to the plugin list .
function wp_statistics_settings_links( $links, $file ) {
		GLOBAL $WP_Statistics;
		$manage_cap = wp_statistics_validate_capability( $WP_Statistics->get_option('manage_capability', 'manage_options') );
		if( current_user_can( $manage_cap ) ) {
			array_unshift( $links, '<a href="' . admin_url( 'admin.php?page=' . WP_STATISTICS_SETTINGS_PAGE ) . '">' . __( 'Settings', 'wp_statistics' ) . '</a>' );
		}
		return $links;
	}
function wp_statistics_settings_links ( $ links , $ file ) { GLOBAL $ WP_Statistics ; $ manage_cap = wp_statistics_validate_capability ( $ WP_Statistics -> get_option ( 'manage_capability' , 'manage_options' ) ) ; if ( current_user_can ( $ manage_cap ) ) { array_unshift ( $ links , '<a href="' . admin_url ( 'admin.php?page=' . WP_STATISTICS_SETTINGS_PAGE ) . '">' . __ ( 'Settings' , 'wp_statistics' ) . '</a>' ) ; } return $ links ; }
Add a settings link to the plugin list.
Add a settings link to the plugin list .