wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_insert_post_data › WordPress Filter Hooks

Seit6.0.0
Veraltetn/v
apply_filters( 'wp_insert_post_data', $data, $postarr, $unsanitized_postarr, $update )
Parameter: (4)
  • () data An array of slashed, sanitized, and processed post data.
    Erforderlich: Ja
  • () postarr An array of sanitized (and slashed) but otherwise unmodified post data.
    Erforderlich: Ja
  • () unsanitized_postarr An array of slashed yet *unsanitized* and unprocessed post data as originally passed to wp_insert_post().
    Erforderlich: Ja
  • () update Whether this is an existing post being updated.
    Erforderlich: Ja
Definiert in:
Codex:

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





Quellcode

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