Jetpack::can_display_jetpack_manage_notice PHP Method

can_display_jetpack_manage_notice() public method

Determines whether to show the notice of not true = display notice
public can_display_jetpack_manage_notice ( ) : (bool)
return (bool)
    function can_display_jetpack_manage_notice()
    {
        // never display the notice to users that can't do anything about it anyways
        if (!current_user_can('jetpack_manage_modules')) {
            return false;
        }
        // don't display if we are in development more
        if (Jetpack::is_development_mode()) {
            return false;
        }
        // don't display if the site is private
        if (!Jetpack_Options::get_option('public')) {
            return false;
        }
        /**
         * Should the Jetpack Remote Site Management notice be displayed.
         *
         * @since 3.3.0
         *
         * @param bool ! self::is_module_active( 'manage' ) Is the Manage module inactive.
         */
        return apply_filters('can_display_jetpack_manage_notice', !self::is_module_active('manage'));
    }
Jetpack