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



pre_untrash_post › Les Filtres WordPress

Depuis5.6.0
Dépréciéen/a
› apply_filters( 'pre_untrash_post', null, $post, $previous_status )
Paramètres: (3)
  • () untrash Whether to go forward with untrashing.
    Requis: Oui
  • () post Post object.
    Requis: Oui
  • () previous_status The status of the post at the point where it was trashed.
    Requis: Oui
Défini(e) dans:
Codex:

Filters whether a post untrashing should take place.





Source

$check = apply_filters( 'pre_untrash_post', null, $post, $previous_status );