Action hook 'xmlrpc_call'

in WP Core File wp-includes/class-wp-xmlrpc-server.php at line 7174

View Source

xmlrpc_call

Action Hook
Description
Retrieves an array of URLs that pingbacked the given URL. Specs on http://www.aquarionics.com/misc/archives/blogite/0198.html

Hook Information

File Location wp-includes/class-wp-xmlrpc-server.php View on GitHub
Hook Type Action
Line Number 7174

Hook Parameters

Type Name Description
string $url No description available

Usage Examples

Basic Usage
<?php
// Hook into xmlrpc_call
add_action('xmlrpc_call', 'my_custom_function', 10, 1);

function my_custom_function($url) {
    // Your custom code here
}

Source Code Context

wp-includes/class-wp-xmlrpc-server.php:7174 - How this hook is used in WordPress core
<?php
7169  	 */
7170  	public function pingback_extensions_getPingbacks( $url ) {
7171  		global $wpdb;
7172  
7173  		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
7174  		do_action( 'xmlrpc_call', 'pingback.extensions.getPingbacks', $url, $this );
7175  
7176  		$url = $this->escape( $url );
7177  
7178  		$post_id = url_to_postid( $url );
7179  		if ( ! $post_id ) {

PHP Documentation

<?php
/**
	 * Retrieves an array of URLs that pingbacked the given URL.
	 *
	 * Specs on http://www.aquarionics.com/misc/archives/blogite/0198.html
	 *
	 * @since 1.5.0
	 *
	 * @global wpdb $wpdb WordPress database abstraction object.
	 *
	 * @param string $url
	 * @return array|IXR_Error
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-includes/class-wp-xmlrpc-server.php
Related Hooks

Related hooks will be displayed here in future updates.