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 |
---|---|
1294 |
|
1295 | $content = apply_block_hooks_to_content( $content, $post ); |
1296 |
|
1297 | // Remove mock Navigation block wrapper. |
1298 | $content = remove_serialized_parent_block( $content ); |
1299 |
|
1300 | $response->data['content']['raw'] = $content; |
1301 |
|
1302 | /** This filter is documented in wp-includes/post-template.php */ |
1303 | $response->data['content']['rendered'] = apply_filters( 'the_content', $content ); |
1304 |
|
1305 | return $response; |
1306 | } |
1307 |
|
1308 | /** |
1309 | * Returns a function that injects the theme attribute into, and hooked blocks before, a given block. |
1310 | * |
1311 | * The returned function can be used as `$pre_callback` argument to `traverse_and_serialize_block(s)`, |
1312 | * where it will inject the `theme` attribute into all Template Part blocks, and prepend the markup for |