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



wp_post_revision_field_{$field} › Les Filtres WordPress

Depuis3.6.0
Dépréciéen/a
› apply_filters( "_wp_post_revision_field_{$field}", $compare_from->$field, $field, $compare_from, 'from' )
Paramètres: (4)
  • () revision_field The current revision field to compare to or from.
    Requis: Oui
  • () field The current revision field.
    Requis: Oui
  • () compare_from The revision post object to compare to or from.
    Requis: Oui
  • () context The context of whether the current revision is the old or the new one. Either 'to' or 'from'.
    Requis: Oui
Défini(e) dans:
Codex:

Contextually filter a post revision field.

The dynamic portion of the hook name, `$field`, corresponds to a name of a field of the revision object. Possible hook names include: - `_wp_post_revision_field_post_title` - `_wp_post_revision_field_post_content` - `_wp_post_revision_field_post_excerpt`




Source

$content_from = $compare_from ? apply_filters( "_wp_post_revision_field_{$field}", $compare_from->$field, $field, $compare_from, 'from' ) : '';