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



pre_delete_attachment › Filtr WordPress Hooks

Od5.5.0
Przestarzałyn/a
› apply_filters( 'pre_delete_attachment', null, $post, $force_delete )
Parametry: (3)
  • () delete Whether to go forward with deletion.
    Wymagane: Tak
  • () post Post object.
    Wymagane: Tak
  • () force_delete Whether to bypass the Trash.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters whether an attachment deletion should take place.





Źródło

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