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.
191*192* @param bool$approve_pingback Whether to auto-approve the pingback.193* @param int$source_idID of the post on this site the pingback194* originated from,or0if it came from elsewhere.195* @param string$url The URL the pingback was sent from.196*/197return(bool)apply_filters('wp_auto_approve_ping',$approve_pingback,$source_id,$url);198}else{199returnfalse;200}201}202returntrue;203}
History
Introduced in 7.1.0.
Signature, return type and hooks compared across 1 parsed release.
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, 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.