wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_post_revision_field_{$field} › Filtr WordPress Hooks

Od3.6.0
Przestarzałyn/a
› apply_filters( "_wp_post_revision_field_{$field}", $compare_from->$field, $field, $compare_from, 'from' )
Parametry: (4)
  • () revision_field The current revision field to compare to or from.
    Wymagane: Tak
  • () field The current revision field.
    Wymagane: Tak
  • () compare_from The revision post object to compare to or from.
    Wymagane: Tak
  • () context The context of whether the current revision is the old or the new one. Either 'to' or 'from'.
    Wymagane: Tak
Zdefiniowane na:
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`




Źródło

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