post_format_rewrite_base
Filters the post formats rewrite base.
Usage
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(string)
- Context of the rewrite base.
Default: 'type'
Changelog
Since 3.1.0 | Introduced. |
Where the hook is called
post_format_rewrite_base
wp-includes/taxonomy.php 45
$post_format_base = apply_filters( 'post_format_rewrite_base', 'type' );