wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_auto_approve_ping › Hooks de Filtros WordPress

Desde7.1.0
Obsoleton/a
› apply_filters( 'wp_auto_approve_ping', $approve_pingback, $source_id, $url )
Parâmetros: (3)
  • () approve_pingback Whether to auto-approve the pingback.
    Required: Yes
  • () source_id ID of the post on this site the pingback originated from, or 0 if it came from elsewhere.
    Required: Yes
  • () url The URL the pingback was sent from.
    Required: Yes
Definido em:
Codex:

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

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.




Fonte

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