Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: the_content

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
1168
1169      $content = apply_block_hooks_to_content( $content, $post );
1170
1171      // Remove mock Navigation block wrapper.
1172      $content = remove_serialized_parent_block( $content );
1173
1174      $response->data['content']['raw'] = $content;
1175
1176      /** This filter is documented in wp-includes/post-template.php */
1177      $response->data['content']['rendered'] = apply_filters( 'the_content', $content );
1178
1179      return $response;
1180 }
1181
1182 /**
1183  * Returns a function that injects the theme attribute into, and hooked blocks before, a given block.
1184  *
1185  * The returned function can be used as `$pre_callback` argument to `traverse_and_serialize_block(s)`,
1186  * where it will inject the `theme` attribute into all Template Part blocks, and prepend the markup for