at path:
ROOT
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
integrations
/
xmlrpc.php
run:
R
W
Run
admin
DIR
2026-04-15 05:43:06
R
W
Run
alerts
DIR
2026-04-15 05:43:06
R
W
Run
blocks
DIR
2026-04-15 05:43:06
R
W
Run
front-end
DIR
2026-04-15 05:43:06
R
W
Run
third-party
DIR
2026-04-15 05:43:06
R
W
Run
watchers
DIR
2026-04-15 05:43:06
R
W
Run
abstract-exclude-post-type.php
1.14 KB
2026-04-15 05:43:06
R
W
Run
Delete
Rename
academy-integration.php
4.51 KB
2026-04-15 05:43:06
R
W
Run
Delete
Rename
breadcrumbs-integration.php
2.02 KB
2026-04-15 05:43:06
R
W
Run
Delete
Rename
cleanup-integration.php
9.72 KB
2026-04-15 05:43:06
R
W
Run
Delete
Rename
estimated-reading-time.php
1.08 KB
2026-04-15 05:43:06
R
W
Run
Delete
Rename
exclude-attachment-post-type.php
810 By
2026-04-15 05:43:06
R
W
Run
Delete
Rename
exclude-oembed-cache-post-type.php
816 By
2026-04-15 05:43:06
R
W
Run
Delete
Rename
feature-flag-integration.php
2.93 KB
2026-04-15 05:43:06
R
W
Run
Delete
Rename
front-end-integration.php
18.87 KB
2026-04-15 05:43:06
R
W
Run
Delete
Rename
integration-interface.php
426 By
2026-04-15 05:43:06
R
W
Run
Delete
Rename
primary-category.php
1.95 KB
2026-04-15 05:43:06
R
W
Run
Delete
Rename
settings-integration.php
36.3 KB
2026-04-15 05:43:06
R
W
Run
Delete
Rename
support-integration.php
5.75 KB
2026-04-15 05:43:06
R
W
Run
Delete
Rename
uninstall-integration.php
1006 By
2026-04-15 05:43:06
R
W
Run
Delete
Rename
woocommerce-product-category-permalink-integration.php
2.08 KB
2026-04-15 05:43:06
R
W
Run
Delete
Rename
xmlrpc.php
1.22 KB
2026-04-15 05:43:06
R
W
Run
Delete
Rename
error_log
up
📄
xmlrpc.php
Save
<?php namespace Yoast\WP\SEO\Integrations; use Yoast\WP\SEO\Conditionals\XMLRPC_Conditional; /** * Noindexes the xmlrpc.php file and all ways to request it. * * @phpcs:disable Yoast.NamingConventions.ObjectNameDepth.MaxExceeded -- Known false positive with acronyms. Fix expected in YoastCS 3.x. */ class XMLRPC implements Integration_Interface { /** * Returns the conditionals based on which this loadable should be active. * * In this case when the current request is an XML-RPC request. * * @return array The conditionals based on which this class should be loaded. */ public static function get_conditionals() { return [ XMLRPC_Conditional::class ]; } /** * Initializes the integration. * * @return void */ public function register_hooks() { \add_filter( 'xmlrpc_methods', [ $this, 'robots_header' ] ); } /** * Sets a noindex, follow x-robots-tag header on all XMLRPC requests. * * @codeCoverageIgnore Basically impossible to test from the command line. * * @param array $methods The methods. * * @return array The methods. */ public function robots_header( $methods ) { if ( \headers_sent() === false ) { \header( 'X-Robots-Tag: noindex, follow', true ); } return $methods; } }