wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



pre_untrash_post › Filtr WordPress Hooks

Od5.6.0
Przestarzałyn/a
› apply_filters( 'pre_untrash_post', null, $post, $previous_status )
Parametry: (3)
  • () untrash Whether to go forward with untrashing.
    Wymagane: Tak
  • () post Post object.
    Wymagane: Tak
  • () previous_status The status of the post at the point where it was trashed.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters whether a post untrashing should take place.





Źródło

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