A WordPress-centric search engine for devs and theme authors



wp_insert_post_data ›

Since2.7.0
Deprecatedn/a
apply_filters( 'wp_insert_post_data', $data, $postarr )
Parameters: (2)
  • (array) $data An array of slashed post data.
    Required: Yes
  • (array) $postarr An array of sanitized, but otherwise unmodified post data.
    Required: Yes
Defined at:
Codex:

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





Source

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