apply_filters( ‘wp_auto_approve_ping’, bool $approve_pingback, int $source_id, string $url )

In this article

Filters whether a pingback is approved without being held for moderation.

Description

Defaults to true for pingbacks originating from a published post on the same site, and false for every other pingback. Trackbacks are never considered, as they cannot be verified.

Parameters

$approve_pingbackbool
Whether to auto-approve the pingback.
$source_idint
ID of the post on this site the pingback originated from, or 0 if it came from elsewhere.
$urlstring
The URL the pingback was sent from.

Source

return (bool) apply_filters( 'wp_auto_approve_ping', $approve_pingback, $source_id, $url );

Changelog

VersionDescription
7.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.