PHP 클래스 WPSEO_Sitemap_Image_Parser, wordpress-seo

파일 보기 프로젝트 열기: yoast/wordpress-seo 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$attachments array Cached set of attachments for multiple posts.
$charset string Holds blog charset value for use in DOM parsing.
$home_url string Holds the home_url() value to speed up loops.
$host string Holds site URL hostname.
$scheme string Holds site URL protocol.

공개 메소드들

메소드 설명
__construct ( ) Set up URL properties for reuse.
cache_attachments ( ) Cache attached images and thumbnails for a set of posts.
get_images ( object $post ) : array Get set of image data sets for the given post.
get_term_images ( object $term ) : array

보호된 메소드들

메소드 설명
get_absolute_url ( string $src ) : string Make absolute URL for domain or protocol-relative one.
get_content_galleries ( string $content ) : array Retrieves galleries from the passed content.
get_image_item ( WP_Post $post, string $src, string $title = '', string $alt = '' ) : array Get image item array with filters applied.

비공개 메소드들

메소드 설명
image_url ( integer $post_id ) : string Get attached image URL. Adapted from core for speed.
parse_galleries ( string $content, integer $post_id ) : array Parse gallery shortcodes in a given content.
parse_html_images ( string $content ) : array Parse tags in content.

메소드 상세

__construct() 공개 메소드

Set up URL properties for reuse.
public __construct ( )

cache_attachments() 공개 메소드

Cache attached images and thumbnails for a set of posts.
사용 중단: 3.3 Blanket caching no longer makes sense with modern galleries. R.
public cache_attachments ( )

get_absolute_url() 보호된 메소드

Make absolute URL for domain or protocol-relative one.
protected get_absolute_url ( string $src ) : string
$src string URL to process.
리턴 string

get_content_galleries() 보호된 메소드

Forked from core to skip executing shortcodes for performance.
protected get_content_galleries ( string $content ) : array
$content string Content to parse for shortcodes.
리턴 array A list of arrays, each containing gallery data.

get_image_item() 보호된 메소드

Get image item array with filters applied.
protected get_image_item ( WP_Post $post, string $src, string $title = '', string $alt = '' ) : array
$post WP_Post Post object for the context.
$src string Image URL.
$title string Optional image title.
$alt string Optional image alt text.
리턴 array

get_images() 공개 메소드

Get set of image data sets for the given post.
public get_images ( object $post ) : array
$post object Post object to get images for.
리턴 array

get_term_images() 공개 메소드

public get_term_images ( object $term ) : array
$term object Term to get images from description for.
리턴 array

프로퍼티 상세

$attachments 보호되어 있는 프로퍼티

Cached set of attachments for multiple posts.
protected array $attachments
리턴 array

$charset 보호되어 있는 프로퍼티

Holds blog charset value for use in DOM parsing.
protected string $charset
리턴 string

$home_url 보호되어 있는 프로퍼티

Holds the home_url() value to speed up loops.
protected string $home_url
리턴 string

$host 보호되어 있는 프로퍼티

Holds site URL hostname.
protected string $host
리턴 string

$scheme 보호되어 있는 프로퍼티

Holds site URL protocol.
protected string $scheme
리턴 string