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
364           }
365
366           if ( ! empty( $schema['properties']['slug'] ) ) {
367                $data['slug'] = $post->post_name;
368           }
369
370           if ( ! empty( $schema['properties']['guid'] ) ) {
371                $data['guid'] = array(
372                     /** This filter is documented in wp-includes/post-template.php */
373                     'rendered' => apply_filters( 'get_the_guid', $post->guid, $post->ID ),
374                     'raw'      => $post->guid,
375                );
376           }
377
378           if ( ! empty( $schema['properties']['title'] ) ) {
379                $data['title'] = array(
380                     'raw'      => $post->post_title,
381                     'rendered' => get_the_title( $post->ID ),
382                );