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 |
|---|---|
| 75 | 'query_var' => false, |
| 76 | 'rewrite' => false, |
| 77 | 'public' => false, |
| 78 | 'show_ui' => false, |
| 79 | '_builtin' => true, |
| 80 | ) ); |
| 81 | |
| 82 | $rewrite = false; |
| 83 | if ( did_action( 'init' ) ) { |
| 84 | $rewrite = apply_filters( 'post_format_rewrite_base', 'type' ); |
| 85 | $rewrite = $rewrite ? array( 'slug' => $rewrite ) : false; |
| 86 | } |
| 87 | |
| 88 | register_taxonomy( 'post_format', 'post', array( |
| 89 | 'public' => true, |
| 90 | 'hierarchical' => false, |
| 91 | 'labels' => array( |
| 92 | 'name' => _x( 'Format', 'post format' ), |
| 93 | 'singular_name' => _x( 'Format', 'post format' ), |