wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_insert_post_data › Les Filtres WordPress

Depuis6.0.0
Dépréciéen/a
› apply_filters( 'wp_insert_post_data', $data, $postarr, $unsanitized_postarr, $update )
Paramètres: (4)
  • () data An array of slashed, sanitized, and processed post data.
    Requis: Oui
  • () postarr An array of sanitized (and slashed) but otherwise unmodified post data.
    Requis: Oui
  • () unsanitized_postarr An array of slashed yet *unsanitized* and unprocessed post data as originally passed to wp_insert_post().
    Requis: Oui
  • () update Whether this is an existing post being updated.
    Requis: Oui
Défini(e) dans:
Codex:

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





Source

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