??????????????
??????????????
??????????????
??????????????
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/koilplta.co.uk/wp-content/plugins/wordpress-seo/src/helpers/robots-txt-helper.php
⬅ Kembali
<?php
namespace Yoast\WP\SEO\Helpers;
use Yoast\WP\SEO\Values\Robots\User_Agent_List;
/**
* A helper object for the robots txt file.
*/
class Robots_Txt_Helper {
/**
* Holds a list of user agents with directives.
*
* @var User_Agent_List
*/
protected $robots_txt_user_agents;
/**
* Holds an array with absolute URLs of sitemaps.
*
* @var array
*/
protected $robots_txt_sitemaps;
/**
* Constructor for Robots_Txt_Helper.
*/
public function __construct() {
$this->robots_txt_user_agents = new User_Agent_List();
$this->robots_txt_sitemaps = [];
}
/**
* Add a disallow rule for a specific user agent if it does not exist yet.
*
* @param string $user_agent The user agent to add the disallow rule to.
* @param string $path The path to add as a disallow rule.
*
* @return void
*/
public function add_disallow( $user_agent, $path ) {
$user_agent_container = $this->robots_txt_user_agents->get_user_agent( $user_agent );
$user_agent_container->add_disallow_directive( $path );
}
/**
* Add an allow rule for a specific user agent if it does not exist yet.
*
* @param string $user_agent The user agent to add the allow rule to.
* @param string $path The path to add as a allow rule.
*
* @return void
*/
public function add_allow( $user_agent, $path ) {
$user_agent_container = $this->robots_txt_user_agents->get_user_agent( $user_agent );
$user_agent_container->add_allow_directive( $path );
}
/**
* Add sitemap to robots.txt if it does not exist yet.
*
* @param string $absolute_path The absolute path to the sitemap to add.
*
* @return void
*/
public function add_sitemap( $absolute_path ) {
if ( ! \in_array( $absolute_path, $this->robots_txt_sitemaps, true ) ) {
$this->robots_txt_sitemaps[] = $absolute_path;
}
}
/**
* Add schema to robots.txt if it does not exist yet.
*
* @phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
*
* @deprecated 27.5
* @codeCoverageIgnore
*
* @param string $absolute_path The absolute path to the sitemap to add.
*
* @return void
*/
public function add_schemamap( $absolute_path ) { // @phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter
\_deprecated_function( __METHOD__, 'Yoast SEO 27.5' );
}
/**
* Get all registered disallow directives per user agent.
*
* @return array The registered disallow directives per user agent.
*/
public function get_disallow_directives() {
return $this->robots_txt_user_agents->get_disallow_directives();
}
/**
* Get all registered allow directives per user agent.
*
* @return array The registered allow directives per user agent.
*/
public function get_allow_directives() {
return $this->robots_txt_user_agents->get_allow_directives();
}
/**
* Get all registered sitemap rules.
*
* @return array<string> The registered sitemap rules.
*/
public function get_sitemap_rules() {
return $this->robots_txt_sitemaps;
}
/**
* Get all registered schemamap rules.
*
* @deprecated 27.5
* @codeCoverageIgnore
*
* @return array<string> The registered schemamap rules.
*/
public function get_schemamap_rules() {
\_deprecated_function( __METHOD__, 'Yoast SEO 27.5' );
return [];
}
/**
* Get all registered user agents
*
* @return array The registered user agents.
*/
public function get_robots_txt_user_agents() {
return $this->robots_txt_user_agents->get_user_agents();
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
📁 open-graph
dir
—
2026-06-24 10:05
📁 schema
dir
—
2026-06-24 10:05
📁 twitter
dir
—
2026-06-24 10:05
🐘 aioseo-helper.php
php
1.2 KB
2025-04-07 13:46
🐘 asset-helper.php
php
2.5 KB
2024-03-05 17:08
🐘 attachment-cleanup-helper.php
php
2.2 KB
2023-02-07 14:53
🐘 author-archive-helper.php
php
5.2 KB
2025-04-07 13:46
🐘 blocks-helper.php
php
2.3 KB
2022-11-29 19:15
🐘 capability-helper.php
php
2.1 KB
2020-09-01 16:27
🐘 crawl-cleanup-helper.php
php
8.1 KB
2026-02-17 17:17
🐘 curl-helper.php
php
655 B
2022-09-01 10:45
🐘 current-page-helper.php
php
15.6 KB
2026-02-17 17:17
🐘 date-helper.php
php
3.1 KB
2021-12-21 15:29
🐘 environment-helper.php
php
793 B
2022-11-29 19:15
🐘 first-time-configuration-notice-helper.php
php
5.4 KB
2025-12-02 18:31
🐘 home-url-helper.php
php
681 B
2026-02-17 17:17
🐘 image-helper.php
php
11.7 KB
2024-09-24 13:30
🐘 import-cursor-helper.php
php
1.4 KB
2025-04-07 13:46
🐘 import-helper.php
php
716 B
2022-04-05 17:50
🐘 indexable-helper.php
php
9.2 KB
2025-10-08 18:12
🐘 indexable-to-postmeta-helper.php
php
6.8 KB
2025-04-07 13:46
🐘 indexing-helper.php
php
12.7 KB
2026-02-17 17:17
🐘 language-helper.php
php
2.7 KB
2023-01-10 17:05
🐘 lock-helper.php
php
2.8 KB
2026-05-12 16:03
🐘 meta-helper.php
php
2.9 KB
2022-01-25 15:16
🐘 notification-helper.php
php
2 KB
2026-02-17 17:17
🐘 options-helper.php
php
4.6 KB
2026-01-07 16:32
🐘 pagination-helper.php
php
5.7 KB
2025-04-07 13:46
🐘 permalink-helper.php
php
1.6 KB
2026-02-04 19:42
🐘 post-helper.php
php
5.4 KB
2025-04-07 13:46
🐘 post-type-helper.php
php
7.2 KB
2026-02-17 17:17
🐘 primary-term-helper.php
php
1.4 KB
2024-01-19 15:31
🐘 product-helper.php
php
1.1 KB
2023-08-08 16:52
🐘 redirect-helper.php
php
1.7 KB
2026-02-17 17:17
🐘 require-file-helper.php
php
326 B
2025-04-07 13:46
🐘 robots-helper.php
php
1.7 KB
2025-04-07 13:46
🐘 robots-txt-helper.php
php
3.4 KB
2026-04-14 14:10
🐘 route-helper.php
php
694 B
2025-12-02 18:31
🐘 sanitization-helper.php
php
1 KB
2022-01-25 15:16
🐘 score-icon-helper.php
php
2.8 KB
2023-05-09 13:01
🐘 short-link-helper.php
php
3.5 KB
2025-04-07 13:46
🐘 site-helper.php
php
566 B
2021-03-22 17:43
🐘 social-profiles-helper.php
php
10.7 KB
2026-02-17 17:17
🐘 string-helper.php
php
1.2 KB
2022-01-25 15:16
🐘 taxonomy-helper.php
php
5 KB
2023-01-24 15:07
🐘 url-helper.php
php
8.1 KB
2026-02-17 17:17
🐘 user-helper.php
php
3.9 KB
2024-12-03 16:05
🐘 wincher-helper.php
php
2.5 KB
2023-06-13 14:02
🐘 woocommerce-helper.php
php
1.3 KB
2026-02-17 17:17
🐘 wordpress-helper.php
php
512 B
2021-07-07 18:45
🐘 wpdb-helper.php
php
937 B
2025-04-07 13:46