/
home
/
techb158
/
primomovers.ca
/
wp-content
/
plugins
/
seo-by-rank-math
/
includes
/
/home/techb158/primomovers.ca/wp-content/plugins/seo-by-rank-math/includes
mkdir
upload
Name
Size
Mode
Actions
3rdparty/
-
0755
rm
abilities/
-
0755
rm
admin/
-
0755
rm
cli/
-
0755
rm
frontend/
-
0755
rm
helpers/
-
0755
rm
metaboxes/
-
0755
rm
module/
-
0755
rm
modules/
-
0755
rm
opengraph/
-
0755
rm
replace-variables/
-
0755
rm
rest/
-
0755
rm
settings/
-
0755
rm
traits/
-
0755
rm
updates/
-
0755
rm
class-auto-updater.php
2284
0644
edit
dl
rm
class-cmb2.php
11655
0644
edit
dl
rm
class-common.php
7185
0644
edit
dl
rm
class-compatibility.php
2578
0644
edit
dl
rm
class-data-encryption.php
4163
0644
edit
dl
rm
class-defaults.php
1158
0644
edit
dl
rm
class-frontend-seo-score.php
10012
0644
edit
dl
rm
class-helper.php
11569
0644
edit
dl
rm
class-installer.php
23959
0644
edit
dl
rm
class-json-manager.php
2842
0644
edit
dl
rm
class-kb.php
13109
0644
edit
dl
rm
class-metadata.php
3573
0644
edit
dl
rm
class-post.php
4796
0644
edit
dl
rm
class-rewrite.php
9795
0644
edit
dl
rm
class-settings.php
3493
0644
edit
dl
rm
class-term.php
3111
0644
edit
dl
rm
class-thumbnail-overlay.php
8081
0644
edit
dl
rm
class-tracking.php
12911
0644
edit
dl
rm
class-update-email.php
5392
0644
edit
dl
rm
class-updates.php
2735
0644
edit
dl
rm
class-user.php
1587
0644
edit
dl
rm
index.php
28
0644
edit
dl
rm
interface-runner.php
380
0644
edit
dl
rm
template-tags.php
2079
0644
edit
dl
rm
Edit:
/home/techb158/primomovers.ca/wp-content/plugins/seo-by-rank-math/includes/class-term.php
(3111B)
<?php /** * The Term Class * * @since 0.9.0 * @package RankMath * @subpackage RankMath\Core * @author Rank Math <support@rankmath.com> */ namespace RankMath; use WP_Term; defined( 'ABSPATH' ) || exit; /** * Term class. */ class Term extends Metadata { /** * Type of object metadata is for * * @var string */ protected $meta_type = 'term'; /** * Retrieve Term instance. * * @param mixed $term Term to get either (string) term name, (int) term ID or (object) term. * @param string $taxonomy Optional. Limit matched terms to those matching `$taxonomy`. Only used for * disambiguating potentially shared terms. * @return Term|false Term object, false otherwise. */ public static function get( $term = 0, $taxonomy = null ) { $term = self::get_term_id( $term, $taxonomy ); if ( empty( $term ) ) { return null; } if ( isset( self::$objects[ $term ] ) && 'term' === self::$objects[ $term ]->meta_type ) { return self::$objects[ $term ]; } $_term = new self( WP_Term::get_instance( $term, $taxonomy ) ); $_term->object_id = $term; self::$objects[ $term ] = $_term; return $_term; } /** * Get term ID. * * @param mixed $term Term to get either (string) term name, (int) term ID or (object) term. * @param string $taxonomy Optional. Limit matched terms to those matching `$taxonomy`. Only used for * disambiguating potentially shared terms. */ private static function get_term_id( $term = 0, $taxonomy = null ) { if ( is_string( $term ) ) { $term = get_term_by( 'slug', $term, $taxonomy ); } elseif ( is_int( $term ) && 0 === absint( $term ) ) { $term = $GLOBALS['wp_query']->get_queried_object(); } if ( is_object( $term ) && isset( $term->term_id ) ) { return $term->term_id; } return false; } /** * Get term meta value. * * @param string $key Meta key. * @param mixed $term Term name, term ID, or term object. * @param string $taxonomy Optional. Limit matched terms to those matching `$taxonomy`. Only used for * disambiguating potentially shared terms. * @param string $default_value Default value to use when metadata does not exists. * @return mixed */ public static function get_meta( $key, $term = 0, $taxonomy = null, $default_value = '' ) { $term = self::get( $term, $taxonomy ); if ( is_null( $term ) || ! $term->is_found() ) { return $default_value; } return $term->get_metadata( $key, $default_value ); } /** * Check if the current query is for multiple terms (e.g. /term-1,term-2/). * * @return bool */ public static function is_multiple_terms_query() { global $wp_query; if ( ! is_tax() && ! is_tag() && ! is_category() ) { return false; } $term = get_queried_object(); $queried_terms = $wp_query->tax_query->queried_terms; if ( empty( $queried_terms[ $term->taxonomy ]['terms'] ) ) { return false; } return count( $queried_terms[ $term->taxonomy ]['terms'] ) > 1; } }
Save
cmd:
run