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
1712
1713           if ( rest_is_field_included( 'content', $fields ) ) {
1714                $data['content'] = array();
1715           }
1716           if ( rest_is_field_included( 'content.raw', $fields ) ) {
1717                $data['content']['raw'] = $post->post_content;
1718           }
1719           if ( rest_is_field_included( 'content.rendered', $fields ) ) {
1720                /** This filter is documented in wp-includes/post-template.php */
1721                $data['content']['rendered'] = post_password_required( $post ) ? '' : apply_filters( 'the_content', $post->post_content );
1722           }
1723           if ( rest_is_field_included( 'content.protected', $fields ) ) {
1724                $data['content']['protected'] = (bool) $post->post_password;
1725           }
1726           if ( rest_is_field_included( 'content.block_version', $fields ) ) {
1727                $data['content']['block_version'] = block_version( $post->post_content );
1728           }
1729
1730           if ( rest_is_field_included( 'excerpt', $fields ) ) {