wppaste
WordPress

wp_xmlrpc_server::pingback_ping( array $args ): string|IXR_Error

Since
1.5.0
Source
wp-includes/class-wp-xmlrpc-server.php:6947
Retrieves a pingback and registers it.

Compatibility

WordPress
since 1.5.0
PHP
7.4–8.6-dev
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0), and compiles on PHP 7.4 through 8.6-dev.

Parameters

$argsarray
Method arguments. Note: arguments must be ordered as documented.
  • $0string

    URL of page linked from.
  • $1string

    URL of page linked to.

Return value

string|IXR_Error

Performance profile

How much work a call to wp_xmlrpc_server::pingback_ping() does, and what it touches: the algorithmic scaling, the Zend instruction count per call across PHP versions, the hooks it hands control to, and the core code that calls it. Measured from the compiled opcodes, not a stopwatch, so every number is identical on any machine running the same PHP version, and every function in core is ranked by cost.

Cost class
Expensive

Reaches an outbound HTTP request via wp_safe_remote_get().

Scaling
Scales with input

The body loops, so the work grows with what you pass in.

Instructions
61–329

Executed per call on PHP 8.5, depending on the branch taken. The body compiles to 450.

Plugin surface
5 hooks

Third-party callbacks on 'xmlrpc_call', 'pingback_ping_source_uri', 'http_headers_useragent' run inside this call, and their cost is not bounded by anything here.

Called by
0

Nothing in core calls this; the cost is only what you spend yourself.

What it touches

  • hookthird-party callbacksdo_action()called directly
  • optionoption read or writeget_option()called directly
  • querycontent queryget_post()called directly
  • httpoutbound HTTP requestwp_safe_remote_get()called directly
  • sqldatabase query->get_results()called directly
  • cacheobject cachewp_cache_get()one call below wp_xmlrpc_server::pingback_ping()
  • serializeserialisationmaybe_unserialize()one call below wp_xmlrpc_server::pingback_ping()

Further down the call graph this can also reach transient. That is the worst case, several calls deep and usually down an error path, not what a normal call pays.

What one call costs · 86 distinct outcomes

One number would be a lie: the work depends on which branch runs. These are every distinct cost wp_xmlrpc_server::pingback_ping() can have, taken from its control-flow graph on PHP 8.5.

WhenInstructionsCalls it makes
!isset($urltest)61do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), __(), ->pingback_error()
always62–79do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), get_post(), __(), ->pingback_error()
$post_id === false67–84do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), get_post(), url_to_postid(), __(), ->pingback_error()
!preg_match()68do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), __(), ->pingback_error()
$post_id !== false && !pings_open()71–88do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), get_post(), url_to_postid(), pings_open(), __(), ->pingback_error()
!preg_match()75do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), preg_match(), __(), ->pingback_error()
!preg_match()82–86do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), get_post(), __(), ->pingback_error()
preg_match()83do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), explode(), get_post(), __(), ->pingback_error()
$post_id !== false && pings_open() && ->get_results()84–101do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), __(), ->pingback_error()
always85do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), ->prepare(), ->get_var(), ->pingback_error()
!preg_match() && $post_id === false87–91do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), get_post(), url_to_postid(), __(), ->pingback_error()
preg_match() && $post_id === false88do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), explode(), get_post(), url_to_postid(), __(), ->pingback_error()
74 further outcomes, up to 329 instructions
isset($urltest) && !preg_match()91do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), preg_match(), get_post(), __(), ->pingback_error()
!preg_match() && $post_id !== false && !pings_open()91–95do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), get_post(), url_to_postid(), pings_open(), __(), ->pingback_error()
!preg_match()92do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), ->prepare(), ->get_var(), ->pingback_error()
preg_match() && $post_id !== false && !pings_open()92do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), explode(), get_post(), url_to_postid(), pings_open(), __(), ->pingback_error()
always95do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), ->prepare(), ->get_var(), get_post(), __(), ->pingback_error()
isset($urltest) && !preg_match() && $post_id === false96do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), preg_match(), get_post(), url_to_postid(), __(), ->pingback_error()
$post_id === false100do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), ->prepare(), ->get_var(), get_post(), url_to_postid(), __(), ->pingback_error()
isset($urltest) && !preg_match() && $post_id !== false && !pings_open()100do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), preg_match(), get_post(), url_to_postid(), pings_open(), __(), ->pingback_error()
!preg_match()102do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), ->prepare(), ->get_var(), get_post(), __(), ->pingback_error()
$post_id !== false && !pings_open()104do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), __(), ->pingback_error()
!preg_match() && $post_id !== false && pings_open() && ->get_results()104–108do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), __(), ->pingback_error()
preg_match() && $post_id !== false && pings_open() && ->get_results()105do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), explode(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), __(), ->pingback_error()
!preg_match() && $post_id === false107do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), ->prepare(), ->get_var(), get_post(), url_to_postid(), __(), ->pingback_error()
!preg_match() && $post_id !== false && !pings_open()111do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), __(), ->pingback_error()
isset($urltest) && !preg_match() && $post_id !== false && pings_open() && ->get_results()113do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), preg_match(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), __(), ->pingback_error()
$post_id !== false && pings_open() && ->get_results()117do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), __(), ->pingback_error()
!preg_match() && $post_id !== false && pings_open() && ->get_results()124do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), __(), ->pingback_error()
$post_id !== false && pings_open() && !->get_results()128–145do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), __(), ->pingback_error()
isset($urltest) && !preg_match() && $post_id !== false && pings_open() && ->get_results()131do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), preg_match(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), __(), ->pingback_error()
!preg_match() && $post_id !== false && pings_open() && !->get_results()148–152do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), __(), ->pingback_error()
preg_match() && $post_id !== false && pings_open() && !->get_results()149do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), explode(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), __(), ->pingback_error()
$post_id !== false && pings_open() && !->get_results() && empty($title)153–171do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), __(), ->pingback_error()
isset($urltest) && !preg_match() && $post_id !== false && pings_open() && !->get_results()157do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), preg_match(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), __(), ->pingback_error()
$post_id !== false && pings_open() && !->get_results()161do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), __(), ->pingback_error()
!preg_match() && $post_id !== false && pings_open() && !->get_results()168do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), __(), ->pingback_error()
!preg_match() && $post_id !== false && pings_open() && !->get_results() && empty($title)173–178do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), __(), ->pingback_error()
preg_match() && $post_id !== false && pings_open() && !->get_results() && empty($title)174–175do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), explode(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), __(), ->pingback_error()
isset($urltest) && !preg_match() && $post_id !== false && pings_open() && !->get_results()175do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), preg_match(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), __(), ->pingback_error()
$post_id !== false && pings_open() && !->get_results() && !empty($title) && empty($context)175–194do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), __(), ->pingback_error()
isset($urltest) && !preg_match() && $post_id !== false && pings_open() && !->get_results() && empty($title)182–183do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), preg_match(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), __(), ->pingback_error()
$post_id !== false && pings_open() && !->get_results() && empty($title)186–187do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), __(), ->pingback_error()
!preg_match() && $post_id !== false && pings_open() && !->get_results() && empty($title)193–194do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), __(), ->pingback_error()
!preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && empty($context)195–201do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), __(), ->pingback_error()
preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && empty($context)196–198do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), explode(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), __(), ->pingback_error()
isset($urltest) && !preg_match() && $post_id !== false && pings_open() && !->get_results() && empty($title)200–201do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), preg_match(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), __(), ->pingback_error()
isset($urltest) && !preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && empty($context)204–206do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), preg_match(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), __(), ->pingback_error()
$post_id !== false && pings_open() && !->get_results() && !empty($title) && empty($context)208–210do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), __(), ->pingback_error()
!preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && empty($context)215–217do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), __(), ->pingback_error()
$post_id !== false && pings_open() && !->get_results() && !empty($title) && !empty($context) && is_wp_error()220–239do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), ->get_error_message(), ->pingback_error()
isset($urltest) && !preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && empty($context)222–224do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), preg_match(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), __(), ->pingback_error()
$post_id !== false && pings_open() && !->get_results() && !empty($title) && !$p && $para224–248do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), preg_match(), strip_tags(), preg_quote(), strip_tags(), __(), ->pingback_error()
$post_id !== false && pings_open() && !->get_results() && !empty($title) && !empty($context) && !is_wp_error()226–245do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), do_action(), __(), sprintf()
!preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !empty($context) && is_wp_error()240–246do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), ->get_error_message(), ->pingback_error()
preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !empty($context) && is_wp_error()241–243do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), explode(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), ->get_error_message(), ->pingback_error()
!preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !$p && $para244–255do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), preg_match(), strip_tags(), preg_quote(), strip_tags(), __(), ->pingback_error()
preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !$p && $para245–252do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), explode(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), preg_match(), strip_tags(), preg_quote(), strip_tags(), __(), ->pingback_error()
!preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !empty($context) && !is_wp_error()246–252do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), do_action(), __(), sprintf()
preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !empty($context) && !is_wp_error()247–249do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), explode(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), do_action(), __(), sprintf()
isset($urltest) && !preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !empty($context) && is_wp_error()249–251do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), preg_match(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), ->get_error_message(), ->pingback_error()
isset($urltest) && !preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !$p && $para253–260do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), preg_match(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), preg_match(), strip_tags(), preg_quote(), strip_tags(), __(), ->pingback_error()
$post_id !== false && pings_open() && !->get_results() && !empty($title) && !empty($context) && is_wp_error()253–255do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), ->get_error_message(), ->pingback_error()
isset($urltest) && !preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !empty($context) && !is_wp_error()255–257do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), preg_match(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), do_action(), __(), sprintf()
$post_id !== false && pings_open() && !->get_results() && !empty($title) && !$p && $para257–264do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), preg_match(), strip_tags(), preg_quote(), strip_tags(), __(), ->pingback_error()
$post_id !== false && pings_open() && !->get_results() && !empty($title) && !empty($context) && !is_wp_error()259–261do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), do_action(), __(), sprintf()
!preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !empty($context) && is_wp_error()260–262do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), ->get_error_message(), ->pingback_error()
!preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !$p && $para264–271do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), preg_match(), strip_tags(), preg_quote(), strip_tags(), __(), ->pingback_error()
!preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !empty($context) && !is_wp_error()266–268do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), do_action(), __(), sprintf()
isset($urltest) && !preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !empty($context) && is_wp_error()267–269do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), preg_match(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), ->get_error_message(), ->pingback_error()
$post_id !== false && pings_open() && !->get_results() && !empty($title) && !$p && $para && !empty($context) && is_wp_error()269–293do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), preg_match(), strip_tags(), preg_quote(), strip_tags(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), ->get_error_message(), ->pingback_error()
isset($urltest) && !preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !$p && $para271–278do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), preg_match(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), preg_match(), strip_tags(), preg_quote(), strip_tags(), __(), ->pingback_error()
isset($urltest) && !preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !empty($context) && !is_wp_error()273–275do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), preg_match(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), do_action(), __(), sprintf()
$post_id !== false && pings_open() && !->get_results() && !empty($title) && !$p && $para && !empty($context) && !is_wp_error()275–299do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), preg_match(), strip_tags(), preg_quote(), strip_tags(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), do_action(), __(), sprintf()
!preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !$p && $para && !empty($context) && is_wp_error()289–300do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), preg_match(), strip_tags(), preg_quote(), strip_tags(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), ->get_error_message(), ->pingback_error()
preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !$p && $para && !empty($context) && is_wp_error()290–297do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), explode(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), preg_match(), strip_tags(), preg_quote(), strip_tags(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), ->get_error_message(), ->pingback_error()
!preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !$p && $para && !empty($context) && !is_wp_error()295–306do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), preg_match(), strip_tags(), preg_quote(), strip_tags(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), do_action(), __(), sprintf()
preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !$p && $para && !empty($context) && !is_wp_error()296–303do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), explode(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), preg_match(), strip_tags(), preg_quote(), strip_tags(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), do_action(), __(), sprintf()
isset($urltest) && !preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !$p && $para && !empty($context) && is_wp_error()298–305do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), preg_match(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), preg_match(), strip_tags(), preg_quote(), strip_tags(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), ->get_error_message(), ->pingback_error()
$post_id !== false && pings_open() && !->get_results() && !empty($title) && !$p && $para && !empty($context) && is_wp_error()302–309do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), preg_match(), strip_tags(), preg_quote(), strip_tags(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), ->get_error_message(), ->pingback_error()
isset($urltest) && !preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !$p && $para && !empty($context) && !is_wp_error()304–311do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), preg_match(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), preg_match(), strip_tags(), preg_quote(), strip_tags(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), do_action(), __(), sprintf()
$post_id !== false && pings_open() && !->get_results() && !empty($title) && !$p && $para && !empty($context) && !is_wp_error()308–315do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), preg_match(), strip_tags(), preg_quote(), strip_tags(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), do_action(), __(), sprintf()
!preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !$p && $para && !empty($context) && is_wp_error()309–316do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), preg_match(), strip_tags(), preg_quote(), strip_tags(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), ->get_error_message(), ->pingback_error()
!preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !$p && $para && !empty($context) && !is_wp_error()315–322do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), preg_match(), strip_tags(), preg_quote(), strip_tags(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), do_action(), __(), sprintf()
isset($urltest) && !preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !$p && $para && !empty($context) && is_wp_error()316–323do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), preg_match(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), preg_match(), strip_tags(), preg_quote(), strip_tags(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), ->get_error_message(), ->pingback_error()
isset($urltest) && !preg_match() && $post_id !== false && pings_open() && !->get_results() && !empty($title) && !$p && $para && !empty($context) && !is_wp_error()322–329do_action(), ->escape(), apply_filters(), get_option(), parse_url(), url_to_postid(), preg_match(), preg_match(), ->prepare(), ->get_var(), get_post(), url_to_postid(), pings_open(), ->prepare(), ->get_results(), sleep(), get_bloginfo(), get_bloginfo(), apply_filters(), wp_safe_remote_get(), wp_remote_retrieve_body(), apply_filters(), preg_match(), strip_tags(), explode(), preg_quote(), preg_match(), strip_tags(), preg_quote(), strip_tags(), esc_html(), ->escape(), ->escape(), ->escape(), compact(), wp_new_comment(), is_wp_error(), do_action(), __(), sprintf()

This body has more branch combinations than are worth enumerating, so the table covers the outcomes found first rather than every one that exists.

Across PHP versions

PHPCompiledExecutedBranchesNotes
8.6-dev45061–32926
8.545061–32926
8.445061–3292659 fewer instructions than PHP 8.3
8.350976–38526
8.250976–38526
8.150976–38526
7.450976–38526

An instruction is not a fixed amount of time, so a matching count is not necessarily the same speed; what it rules out is a difference in the work itself.

Hooks and filters fired · 5

5 hooks fire while wp_xmlrpc_server::pingback_ping() runs, in this order:

  1. do_action( xmlrpc_call )actionline 6951 (+4 into the body)

    Fires after the XML-RPC user has been authenticated but before the rest of the method logic begins.

  2. apply_filters( pingback_ping_source_uri )filterline 6967 (+20 into the body)

    Filters the pingback source URI.

  3. apply_filters( http_headers_useragent )filterline 7059 (+112 into the body)

    Filters the user agent value sent with an HTTP request.

  4. apply_filters( pre_remote_source )filterline 7088 (+141 into the body)

    Filters the pingback remote source.

  5. do_action( pingback_post )actionline 7186 (+239 into the body)

    Fires after a post pingback has been sent.

Uses · 16

Show all 16

Changelog

Introduced in 1.5.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/class-wp-xmlrpc-server.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.