pingback_ping_source_uri
Filter HookDescription
Filters the pingback source URI.Hook Information
File Location |
wp-includes/class-wp-xmlrpc-server.php
View on GitHub
|
Hook Type | Filter |
Line Number | 6933 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$pagelinkedfrom
|
URI of the page linked from. |
string
|
$pagelinkedto
|
URI of the page linked to. |
Usage Examples
Basic Usage
<?php
// Hook into pingback_ping_source_uri
add_filter('pingback_ping_source_uri', 'my_custom_filter', 10, 2);
function my_custom_filter($pagelinkedfrom, $pagelinkedto) {
// Your custom filtering logic here
return $pagelinkedfrom;
}
Source Code Context
wp-includes/class-wp-xmlrpc-server.php:6933
- How this hook is used in WordPress core
<?php
6928 * @since 3.6.0
6929 *
6930 * @param string $pagelinkedfrom URI of the page linked from.
6931 * @param string $pagelinkedto URI of the page linked to.
6932 */
6933 $pagelinkedfrom = apply_filters( 'pingback_ping_source_uri', $pagelinkedfrom, $pagelinkedto );
6934
6935 if ( ! $pagelinkedfrom ) {
6936 return $this->pingback_error( 0, __( 'A valid URL was not provided.' ) );
6937 }
6938
PHP Documentation
<?php
/**
* Filters the pingback source URI.
*
* @since 3.6.0
*
* @param string $pagelinkedfrom URI of the page linked from.
* @param string $pagelinkedto URI of the page linked to.
*/
Quick Info
- Hook Type: Filter
- Parameters: 2
- File: wp-includes/class-wp-xmlrpc-server.php
Related Hooks
Related hooks will be displayed here in future updates.