wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_auto_approve_ping › Les Filtres WordPress

Depuis7.1.0
Dépréciéen/a
› apply_filters( 'wp_auto_approve_ping', $approve_pingback, $source_id, $url )
Paramètres: (3)
  • () approve_pingback Whether to auto-approve the pingback.
    Requis: Oui
  • () source_id ID of the post on this site the pingback originated from, or 0 if it came from elsewhere.
    Requis: Oui
  • () url The URL the pingback was sent from.
    Requis: Oui
Défini(e) dans:
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.




Source

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