Jetpack_IDC::init PHP Method

init() static public method

static public init ( )
    static function init()
    {
        if (is_null(self::$instance)) {
            self::$instance = new Jetpack_IDC();
        }
        return self::$instance;
    }

Usage Example

Esempio n. 1
0
         * @param string $html The HTML to be displayed
         */
        return apply_filters('jetpack_idc_unsure_prompt', $html);
    }
    function get_non_admin_notice_text()
    {
        $html = wp_kses(sprintf(__('Jetpack has been placed into Safe Mode. Learn more about <a href="%1$s">Safe Mode</a>.', 'jetpack'), esc_url(self::SAFE_MODE_DOC_LINK)), array('a' => array('href' => array())));
        /**
         * Allows overriding of the default text that is displayed to non-admin on the Jetpack admin page.
         *
         * @since 4.4.0
         *
         * @param string $html The HTML to be displayed
         */
        return apply_filters('jetpack_idc_non_admin_notice_text', $html);
    }
    function get_non_admin_contact_admin_text()
    {
        $string = esc_html__('An administrator of this site can take Jetpack out of Safe Mode.', 'jetpack');
        /**
         * Allows overriding of the default text that is displayed to non-admins prompting them to contact an admin.
         *
         * @since 4.4.0
         *
         * @param string $string The string to be displayed
         */
        return apply_filters('jetpack_idc_non_admin_contact_admin_text', $string);
    }
}
Jetpack_IDC::init();