post_format_rewrite_base хук-фильтрWP 3.1.0

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 Введена.

Где вызывается хук

create_initial_taxonomies()
post_format_rewrite_base
wp-includes/taxonomy.php 45
$post_format_base = apply_filters( 'post_format_rewrite_base', 'type' );

Где используется хук в WordPress

Использование не найдено.