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



wp_revisions_to_keep › Les Filtres WordPress

Depuis3.6.0
Dépréciéen/a
apply_filters( 'wp_revisions_to_keep', $num, $post )
Paramètres: (2)
  • (int) $num Number of revisions to store.
    Requis: Oui
  • (WP_Post) $post Post object.
    Requis: Oui
Défini(e) dans:
Codex:

Filters the number of revisions to save for the given post.

Overrides the value of WP_POST_REVISIONS.





Source

$num = apply_filters( 'wp_revisions_to_keep', $num, $post );