id = str_replace( ['-', ' '], '', substr( $text, 0, 20 ) ); } else { $this->id = $id; } $this->text = $text; add_action( 'admin_notices', array( $this, 'admin_notices' ) ); add_action( 'admin_init', array( $this, 'admin_init' )); } public static function create( $text = '', $is_dismisable = true, $id = '' ) { return new self( $text, $is_dismisable, $id ); } final public function admin_notices() { $ampersent = empty( $_SERVER["QUERY_STRING"] ) ? '?' : '&'; if ( get_theme_mod( $this->id ) == false ) { ?>
text ?>
id ; ?>=1">
id ] ) ) { set_theme_mod( $this->id, 1 ); } } } }