get_the_guid

get_the_guid

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('get_the_guid') is found 3 times:

  • /wp-includes/post-template.php line 235
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
         *
         * @param string $post_guid Global Unique Identifier (guid) of the post.
         * @param int    $post_id   The post ID.
         */
        return apply_filters( 'get_the_guid', $post_guid, $post_id );
    }
     
    /**
     * Displays the post content.
     *
     * @since 0.71
  • /wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php line 1856
    1853
    1854
    1855
    1856
    1857
    1858
    1859
    1860
    1861
    1862
    if ( rest_is_field_included( 'guid', $fields ) ) {
        $data['guid'] = array(
            /** This filter is documented in wp-includes/post-template.php */
            'rendered' => apply_filters( 'get_the_guid', $post->guid, $post->ID ),
            'raw'      => $post->guid,
        );
    }
     
    if ( rest_is_field_included( 'modified', $fields ) ) {
        $data['modified'] = $this->prepare_date_response( $post->post_modified_gmt, $post->post_modified );
  • /wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php line 615
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    if ( in_array( 'guid', $fields, true ) ) {
        $data['guid'] = array(
            /** This filter is documented in wp-includes/post-template.php */
            'rendered' => apply_filters( 'get_the_guid', $post->guid, $post->ID ),
            'raw'      => $post->guid,
        );
    }
     
    if ( in_array( 'title', $fields, true ) ) {
        $data['title'] = array(