post_format_rewrite_base
Filters the post formats rewrite base.
Использование
add_filter( 'post_format_rewrite_base', 'wp_kama_post_format_rewrite_base_filter' );
/**
* Function for `post_format_rewrite_base` filter-hook.
*
* @param string $context Context of the rewrite base.
*
* @return string
*/
function wp_kama_post_format_rewrite_base_filter( $context ){
// filter...
return $context;
}
- $context(строка)
- Context of the rewrite base.
По умолчанию: 'type'
Список изменений
| С версии 3.1.0 | Введена. |
Где вызывается хук
post_format_rewrite_base
wp-includes/taxonomy.php 45
$post_format_base = apply_filters( 'post_format_rewrite_base', 'type' );