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



wp_{$post->post_type}_revisions_to_keep › Hooks de Filtros WordPress

Desde5.8.0
Obsoleton/a
› apply_filters( "wp_{$post->post_type}_revisions_to_keep", $num, $post )
Parâmetros: (2)
  • () num Number of revisions to store.
    Required: Yes
  • () post Post object.
    Required: Yes
Definido em:
Codex:

Filters the number of revisions to save for the given post by its post type.

Overrides both the value of WP_POST_REVISIONS and the {@see 'wp_revisions_to_keep'} filter. The dynamic portion of the hook name, `$post->post_type`, refers to the post type slug. Possible hook names include: - `wp_post_revisions_to_keep` - `wp_page_revisions_to_keep`




Fonte

$num = apply_filters( "wp_{$post->post_type}_revisions_to_keep", $num, $post );