WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
73 | 'query_var' => false, |
74 | 'rewrite' => false, |
75 | 'public' => false, |
76 | 'show_ui' => false, |
77 | '_builtin' => true, |
78 | ) ); |
79 |
|
80 | $rewrite = false; |
81 | if ( did_action( 'init' ) ) { |
82 | $rewrite = apply_filters( 'post_format_rewrite_base', 'type' ); |
83 | $rewrite = $rewrite ? array( 'slug' => $rewrite ) : false; |
84 | } |
85 |
|
86 | register_taxonomy( 'post_format', 'post', array( |
87 | 'public' => true, |
88 | 'hierarchical' => false, |
89 | 'labels' => array( |
90 | 'name' => _x( 'Format', 'post format' ), |
91 | 'singular_name' => _x( 'Format', 'post format' ), |