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 |
---|---|
255 | * Filters post types array. |
256 | * |
257 | * This filter can be used to hide post meta information of post, page or custom post type |
258 | * registered by child themes or plugins. |
259 | * |
260 | * @since Twenty Twenty 1.0 |
261 | * |
262 | * @param array Array of post types. |
263 | */ |
264 | $disallowed_post_types = apply_filters( 'twentytwenty_disallowed_post_types_for_meta_output', array( 'page' ) ); |
265 |
|
266 | // Check whether the post type is allowed to output post meta. |
267 | if ( in_array( get_post_type( $post_id ), $disallowed_post_types, true ) ) { |
268 | return; |
269 | } |
270 |
|
271 | $post_meta_wrapper_classes = ''; |
272 | $post_meta_classes = ''; |
273 |
|