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



pre_trash_post › Filtr WordPress Hooks

Od6.3.0
Przestarzałyn/a
› apply_filters( 'pre_trash_post', null, $post, $previous_status )
Parametry: (3)
  • () trash Whether to go forward with trashing.
    Wymagane: Tak
  • () post Post object.
    Wymagane: Tak
  • () previous_status The status of the post about to be trashed.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters whether a post trashing should take place.





Źródło

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