Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: post_format_rewrite_base

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
33      } else {
34
35           /**
36            * Filters the post formats rewrite base.
37            *
38            * @since 3.1.0
39            *
40            * @param string $context Context of the rewrite base. Default 'type'.
41            */
42           $post_format_base = apply_filters( 'post_format_rewrite_base', 'type' );
43           $rewrite          = array(
44                'category'    => array(
45                     'hierarchical' => true,
46                     'slug'         => get_option( 'category_base' ) ? get_option( 'category_base' ) : 'category',
47                     'with_front'   => ! get_option( 'category_base' ) || $wp_rewrite->using_index_permalinks(),
48                     'ep_mask'      => EP_CATEGORIES,
49                ),
50                'post_tag'    => array(
51                     'hierarchical' => false,