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



pre_delete_post › Les Filtres WordPress

Depuis4.4.0
Dépréciéen/a
› apply_filters( 'pre_delete_post', null, $post, $force_delete )
Paramètres: (3)
  • () check Whether to go forward with deletion. Anything other than null will short-circuit deletion.
    Requis: Oui
  • () post Post object.
    Requis: Oui
  • () force_delete Whether to bypass the Trash.
    Requis: Oui
Défini(e) dans:
Codex:

Filters whether a post deletion should take place.





Source

$check = apply_filters( 'pre_delete_post', null, $post, $force_delete );