Website : phonehp.ir
backdoor
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Home
Console
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
nehpir
/
www
/
wp-content
/
plugins
/
woocommersa
/
includes
/
Core
/
SEO
/
Providers
/
Filename :
RankMath.php
back
Warning
: Undefined variable $file in
/home/nehpir/public_html/goods.php
on line
545
Copy
<?php namespace WooCommersa\Core\SEO\Providers; if (!defined('ABSPATH')) exit; use WooCommersa\Core\SEO\ProviderInterface; class RankMath implements ProviderInterface { private $keys = [ 'title' => 'rank_math_title', 'description' => 'rank_math_description', 'keywords' => 'rank_math_focus_keyword', 'robots' => 'rank_math_robots' ]; public function update_meta($post_id, $field, $value) { if (!isset($this->keys[$field])) return false; $result = update_post_meta($post_id, $this->keys[$field], $value); $this->notify_rank_math($post_id); return $result; } public function get_meta($post_id, $field) { if (!isset($this->keys[$field])) return ''; return get_post_meta($post_id, $this->keys[$field], true); } public function supports_schema() { return true; } public function inject_schema($post_id) { // RankMath handles its own schema injection. return true; } public function get_robots($post_id) { $robots = get_post_meta($post_id, 'rank_math_robots', true); if (!is_array($robots)) return ['index', 'follow']; return $robots; } public function update_robots($post_id, $robots) { $result = update_post_meta($post_id, 'rank_math_robots', (array) $robots); $this->notify_rank_math($post_id); return $result; } public function get_faq_schema($post_id) { // Try RM specific meta first $faq = get_post_meta($post_id, '_rank_math_faq_data', true); if (empty($faq)) { // Fallback to our own meta $faq = get_post_meta($post_id, 'faq_schema_data', true); } return is_array($faq) ? $faq : []; } public function update_faq_schema($post_id, $faq_data) { update_post_meta($post_id, '_rank_math_faq_data', (array) $faq_data); update_post_meta($post_id, 'faq_schema_data', (array) $faq_data); $this->notify_rank_math($post_id); return true; } public function has_faq_schema($post_id) { $rm_faq = get_post_meta($post_id, '_rank_math_faq_data', true); return !empty($rm_faq) && is_array($rm_faq); } /** * Notify RankMath about metadata changes */ private function notify_rank_math($post_id) { if (class_exists('RankMath\Helper')) { \RankMath\Helper::clear_cache($post_id); } } }