Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: get_the_guid

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
1423                } else {
1424                     $post_date_gmt = $post->post_date_gmt;
1425                }
1426                $data['date_gmt'] = $this->prepare_date_response( $post_date_gmt );
1427           }
1428
1429           if ( ! empty( $schema['properties']['guid'] ) ) {
1430                $data['guid'] = array(
1431                     /** This filter is documented in wp-includes/post-template.php */
1432                     'rendered' => apply_filters( 'get_the_guid', $post->guid, $post->ID ),
1433                     'raw'      => $post->guid,
1434                );
1435           }
1436
1437           if ( ! empty( $schema['properties']['modified'] ) ) {
1438                $data['modified'] = $this->prepare_date_response( $post->post_modified_gmt, $post->post_modified );
1439           }
1440
1441           if ( ! empty( $schema['properties']['modified_gmt'] ) ) {