wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_post_revision_field_{$field} › WordPress Filter Hooks

Seit3.6.0
Veraltetn/v
apply_filters( "_wp_post_revision_field_{$field}", $compare_from->$field, $field, $compare_from, 'from' )
Parameter: (4)
  • (string) $revision_field The current revision field to compare to or from.
    Erforderlich: Ja
  • (string) $field The current revision field.
    Erforderlich: Ja
  • (WP_Post) $compare_from The revision post object to compare to or from.
    Erforderlich: Ja
  • (string) $context The context of whether the current revision is the old or the new one. Either 'to' or 'from'.
    Erforderlich: Ja
Definiert in:
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




Quellcode

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