??????????????
??????????????
??????????????
??????????????
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/sendmaxagency.com/wp-content/plugins/surerank/inc/traits/reset-meta-data.php
⬅ Kembali
<?php
/**
* Trait.
*
* @package surerank
* @since 1.9.0
*/
namespace SureRank\Inc\Traits;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Trait Reset_Meta_Data.
*
* Shared by the surerank_set_meta providers that cache their meta per
* request. The headless REST render simulates multiple front-end renders
* within a single request, so the cache must be clearable between renders
* via the surerank_reset_frontend_meta action.
*
* @since 1.9.0
*/
trait Reset_Meta_Data {
/**
* Reset the per-request meta cache.
*
* @since 1.9.0
* @return void
*/
public function reset_meta_data() {
$this->meta_data = null;
}
/**
* Hook the reset into the shared frontend-meta reset action.
*
* Called from the using class's constructor, alongside its
* surerank_set_meta registration — anything that can cache can also be
* reset.
*
* @since 1.9.0
* @return void
*/
protected function register_meta_reset() {
add_action( 'surerank_reset_frontend_meta', [ $this, 'reset_meta_data' ] );
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
🐘 custom-field.php
php
5.1 KB
2026-06-18 16:45
🐘 enqueue.php
php
12.7 KB
2026-06-18 16:45
🐘 get-instance.php
php
577 B
2026-06-18 16:45
🐘 logger.php
php
933 B
2026-06-18 16:45
🐘 reset-meta-data.php
php
1 KB
2026-06-18 16:45
🐘 tag-attribute-helpers.php
php
1.7 KB
2026-06-18 16:45