wpseo_image_data

wpseo_image_data

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

See hook in core

Displaying hooks found in version: wordpress-seo.23.8

apply_filters('wpseo_image_data') is found 1 times:

  • /inc/class-wpseo-image-utils.php line 167
    		 *     @type int    filesize The file size in bytes, if already set.
    		 * }
    		 * @param int   $attachment_id Attachment ID.
    		 */
    		$image = apply_filters( 'wpseo_image_data', $image, $attachment_id );
    
    		// Keep only the keys we need, and nothing else.
    		return array_intersect_key( $image, array_flip( [ 'id', 'alt', 'path', 'width', 'height', 'pixels', 'type', 'size', 'url', 'filesize' ] ) );
    	}
    
    	/**