option_ping_sites
The WordPress Core option ping sites hook.
Description
Parameters (1)
- 0. $privacy_ping_filter (string) =>
'privacy_ping_filter'
- The privacy ping filter.
Usage
- To run the hook, copy the example below.
- $privacy_ping_filter = apply_filters( 'option_ping_sites', $privacy_ping_filter );
- if ( !empty( $privacy_ping_filter ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the option_ping_sites callback
- function filter_option_ping_sites( $privacy_ping_filter ) {
- // make filter magic happen here...
- return $privacy_ping_filter;
- };
- // add the filter
- add_filter( 'option_ping_sites', 'filter_option_ping_sites', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'option_ping_sites', 'filter_option_ping_sites', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /wp-includes/default-filters.php
- add_filter( 'option_ping_sites', 'privacy_ping_filter' );