Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_insert_attachment_data ›

Desde3.9.0
Obsoleton/a
apply_filters( 'wp_insert_attachment_data', $data, $postarr )
Parâmetros: (2)
  • (array) $data An array of sanitized attachment post data.
    Required: Yes
  • (array) $postarr An array of unsanitized attachment post data.
    Required: Yes
Definido em:
Codex:

Filters attachment post data before it is updated in or added to the database.





Fonte

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