wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_insert_post_data › WordPress Filter Hooks

Da6.0.0
Deprecaton/a
› apply_filters( 'wp_insert_post_data', $data, $postarr, $unsanitized_postarr, $update )
Parametri: (4)
  • () data An array of slashed, sanitized, and processed post data.
    Richiesto: Sì
  • () postarr An array of sanitized (and slashed) but otherwise unmodified post data.
    Richiesto: Sì
  • () unsanitized_postarr An array of slashed yet *unsanitized* and unprocessed post data as originally passed to wp_insert_post().
    Richiesto: Sì
  • () update Whether this is an existing post being updated.
    Richiesto: Sì
Definito a:
Codex:

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





Sorgenti

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