get_the_guid

get_the_guid

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('get_the_guid') is found 3 times:

  • /wp-includes/post-template.php line 235
    	 *
    	 * @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
     
    		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
     
    		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(