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



{$field}_pre ›

Desde2.3.0
Obsoleton/a
apply_filters( "{$field}_pre", $value )
Parâmetros:
  • (mixed) $value Value of the post field.
    Required: Yes
Definido em:
Codex:

Filters the value of a specific post field before saving.

The dynamic portion of the hook name, $field, refers to the post field name.





Fonte

$value = apply_filters( "{$field}_pre", $value );