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



pre_delete_post › Filtr WordPress Hooks

Od4.4.0
Przestarzałyn/a
› apply_filters( 'pre_delete_post', null, $post, $force_delete )
Parametry: (3)
  • () check Whether to go forward with deletion. Anything other than null will short-circuit deletion.
    Wymagane: Tak
  • () post Post object.
    Wymagane: Tak
  • () force_delete Whether to bypass the Trash.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters whether a post deletion should take place.





Źródło

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