/home/fortodpl/thecutediva.com/wp-content/plugins/wordpress-seo/inc
NameSizeModeActions
exceptions/-0755rm
options/-0755rm
sitemaps/-0755rm
class-addon-manager.php271800644editdlrm
class-my-yoast-api-request.php55180644editdlrm
class-post-type.php39860644editdlrm
class-rewrite.php77630644editdlrm
class-upgrade-history.php31180644editdlrm
class-upgrade.php566280644editdlrm
class-wpseo-admin-bar-menu.php295360644editdlrm
class-wpseo-content-images.php26550644editdlrm
class-wpseo-custom-fields.php24890644editdlrm
class-wpseo-custom-taxonomies.php16300644editdlrm
class-wpseo-image-utils.php153910644editdlrm
class-wpseo-installation.php12010644editdlrm
class-wpseo-meta.php374240644editdlrm
class-wpseo-primary-term.php17390644editdlrm
class-wpseo-rank.php75600644editdlrm
class-wpseo-replace-vars.php526990644editdlrm
class-wpseo-replacement-variable.php13750644editdlrm
class-wpseo-shortlinker.php11320644editdlrm
class-wpseo-statistics.php14430644editdlrm
class-wpseo-utils.php297020644editdlrm
class-yoast-dynamic-rewrites.php53610644editdlrm
date-helper.php17520644editdlrm
index.php380644editdlrm
interface-wpseo-wordpress-ajax-integration.php2940644editdlrm
interface-wpseo-wordpress-integration.php3480644editdlrm
language-utils.php13130644editdlrm
wpseo-functions-deprecated.php680644editdlrm
wpseo-functions.php92180644editdlrm
wpseo-non-ajax-functions.php15930644editdlrm
Edit: /home/fortodpl/thecutediva.com/wp-content/plugins/wordpress-seo/inc/class-wpseo-primary-term.php (1739B)
taxonomy_name = $taxonomy_name; $this->post_ID = $post_id; } /** * Returns the primary term ID. * * @return int|bool */ public function get_primary_term() { $primary_term = get_post_meta( $this->post_ID, WPSEO_Meta::$meta_prefix . 'primary_' . $this->taxonomy_name, true ); if ( ! $primary_term ) { return false; } $terms = $this->get_terms(); if ( ! in_array( (int) $primary_term, wp_list_pluck( $terms, 'term_id' ), true ) ) { $primary_term = false; } $primary_term = (int) $primary_term; return ( $primary_term ) ? ( $primary_term ) : false; } /** * Sets the new primary term ID. * * @param int $new_primary_term New primary term ID. * * @return void */ public function set_primary_term( $new_primary_term ) { update_post_meta( $this->post_ID, WPSEO_Meta::$meta_prefix . 'primary_' . $this->taxonomy_name, $new_primary_term ); } /** * Get the terms for the current post ID. * When $terms is not an array, set $terms to an array. * * @return array */ protected function get_terms() { $terms = get_the_terms( $this->post_ID, $this->taxonomy_name ); if ( ! is_array( $terms ) ) { $terms = []; } return $terms; } }