static function init() {
        // This can be overridden if something else feels better
        self::$hover_text = 'This option is set readonly in ' . basename(__DIR__).'/'.basename(__FILE__);

        // Use javascript hack in admin option pages
        if ( is_admin() && ! defined('WP_READONLY_OPTIONS_NO_JS') ) {
            add_action('admin_enqueue_scripts', [ __CLASS__, 'set_admin_readonly_js' ] );
        }
    }
static function init() {
        // This can be overridden if something else feels better
        self::$hover_text = 'This option is set readonly in ' . basename(__DIR__).'/'.basename(__FILE__);

        // Use javascript hack in admin option pages
        if ( is_admin() && ! defined('WP_READONLY_OPTIONS_NO_JS') ) {
            add_action('admin_enqueue_scripts', [ __CLASS__, 'set_admin_readonly_js' ] );
        }
    }
static function init ( ) { // This can be overridden if something else feels better self :: $ hover_text = 'This option is set readonly in ' . basename ( __DIR__ ) . '/' . basename ( __FILE__ ) ; // Use javascript hack in admin option pages if ( is_admin ( ) && ! defined ( 'WP_READONLY_OPTIONS_NO_JS' ) ) { add_action ( 'admin_enqueue_scripts' , [ __CLASS__ , 'set_admin_readonly_js' ] ) ; } }
Setup hooks, filters and default options
Setup hooks filters and default options