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



wp_insert_post_data › Filtr WordPress Hooks

Od6.0.0
Przestarzałyn/a
› apply_filters( 'wp_insert_post_data', $data, $postarr, $unsanitized_postarr, $update )
Parametry: (4)
  • () data An array of slashed, sanitized, and processed post data.
    Wymagane: Tak
  • () postarr An array of sanitized (and slashed) but otherwise unmodified post data.
    Wymagane: Tak
  • () unsanitized_postarr An array of slashed yet *unsanitized* and unprocessed post data as originally passed to wp_insert_post().
    Wymagane: Tak
  • () update Whether this is an existing post being updated.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters slashed post data just before it is inserted into the database.





Źródło

$data = apply_filters( 'wp_insert_post_data', $data, $postarr, $unsanitized_postarr, $update );