load_menu example

return Akismet_Admin::get_server_connectivity( $cache_timeout );
}
function akismet_server_connectivity_ok() {
    _deprecated_function( __FUNCTION__, '3.0' );

    return true;
}
function akismet_admin_menu() {
    return Akismet_Admin::admin_menu();
}
function akismet_load_menu() {
    return Akismet_Admin::load_menu();
}
function akismet_init() {
    _deprecated_function( __FUNCTION__, '3.0' );
}
function akismet_get_key() {
    return Akismet::get_api_key();
}
function akismet_check_key_status( $key$ip = null ) {
    return Akismet::check_key_status( $key$ip );
}
function akismet_update_alert( $response ) {
    
wp_add_privacy_policy_content(
                __( 'Akismet', 'akismet' ),
                __( 'We collect information about visitors who comment on Sites that use our Akismet anti-spam service. The information we collect depends on how the User sets up Akismet for the Site, but typically includes the commenter\'s IP address, user agent, referrer, and Site URL (along with other information directly provided by the commenter such as their name, username, email address, and the comment itself).', 'akismet' )
            );
        }
    }

    public static function admin_menu() {
        if ( class_exists( 'Jetpack' ) ) {
            add_action( 'jetpack_admin_menu', array( 'Akismet_Admin', 'load_menu' ) );
        } else {
            self::load_menu();
        }
    }

    public static function admin_head() {
        if ( !current_user_can( 'manage_options' ) )
            return;
    }
    
    public static function admin_plugin_settings_link( $links ) { 
          $settings_link = '<a href="'.esc_url( self::get_page_url() ).'">'.__('Settings', 'akismet').'</a>';
          array_unshift( $links$settings_link )
          
Home | Imprint | This part of the site doesn't use cookies.