??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/am1atec.co.uk/wp-content/plugins/surerank/inc/frontend/taxonomy.php
⬅ Kembali
<?php
/**
* Taxonomy Meta Data
*
* This file will handle functionality to print meta_data in frontend for taxonomy requests.
*
* @package surerank
* @since 0.0.1
*/
namespace SureRank\Inc\Frontend;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
use SureRank\Inc\Functions\Settings;
use SureRank\Inc\Functions\Validate;
use SureRank\Inc\Functions\Variables;
use SureRank\Inc\Traits\Get_Instance;
use SureRank\Inc\Traits\Reset_Meta_Data;
/**
* Taxonomy SEO
* This class will handle functionality to print meta_data in frontend for taxonomy requests.
*
* @since 1.0.0
*/
class Taxonomy {
use Get_Instance;
use Reset_Meta_Data;
/**
* Meta Data
*
* @var array<string, mixed>|null $meta_data Term meta data.
* @since 1.0.0
*/
private $meta_data = null;
/**
* Constructor
*
* @since 1.0.0
*/
public function __construct() {
add_filter( 'surerank_set_meta', [ $this, 'get_meta_data' ], 1 );
$this->register_meta_reset();
}
/**
* Add meta data
*
* @param array<string, mixed> $meta_data Meta Data.
* @since 1.0.0
* @return array<string, mixed>
*/
public function get_meta_data( $meta_data ) {
if ( ! is_tax() && ! is_category() && ! is_tag() ) {
return $meta_data;
}
$term = get_queried_object();
if ( empty( $term ) || ! isset( $term->term_id ) ) {
return $meta_data;
}
if ( null !== $this->meta_data ) {
return $meta_data;
}
$term_id = intval( $term->term_id );
$taxonomy = $term->taxonomy ?? '';
$this->meta_data = Variables::replace( Validate::array( Settings::prep_term_meta( $term_id, $taxonomy, true ) ), $term_id );
return $this->meta_data;
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
🐘 archives-meta.php
php
4.9 KB
2026-06-21 06:40
🐘 archives.php
php
6 KB
2026-06-21 06:40
🐘 author.php
php
2.5 KB
2026-06-21 06:40
🐘 breadcrumbs.php
php
11.4 KB
2026-06-21 06:40
🐘 canonical.php
php
2.9 KB
2026-06-21 06:40
🐘 common.php
php
1.8 KB
2026-06-21 06:40
🐘 content-seo.php
php
10.4 KB
2026-06-21 06:40
🐘 crawl-optimization.php
php
11.2 KB
2026-06-21 06:40
🐘 description.php
php
6.5 KB
2026-06-21 06:40
🐘 facebook.php
php
16.9 KB
2026-06-21 06:40
🐘 feed.php
php
3.7 KB
2026-06-21 06:40
🐘 image-seo.php
php
15.3 KB
2026-06-21 06:40
🐘 image.php
php
7.1 KB
2026-06-21 06:40
🐘 link-seo.php
php
14.1 KB
2026-06-21 06:40
🐘 meta-data.php
php
4 KB
2026-06-21 06:40
🐘 meta-tag-injection.php
php
1.2 KB
2026-06-21 06:40
🐘 product.php
php
2.2 KB
2026-06-21 06:40
🐘 robots.php
php
6.5 KB
2026-06-21 06:40
🐘 seo-popup.php
php
1 KB
2026-06-21 06:40
🐘 single.php
php
1.6 KB
2026-06-21 06:40
🐘 special-page.php
php
5.3 KB
2026-06-21 06:40
🐘 taxonomy.php
php
1.6 KB
2026-06-21 06:40
🐘 title.php
php
6.6 KB
2026-06-21 06:40
🐘 twitter.php
php
5.3 KB
2026-06-21 06:40