PHP 클래스 The_SEO_Framework\Sitemaps

Handles sitemap output.
부터: 2.7.1
상속: extends Metaboxes
파일 보기 프로젝트 열기: sybrew/the-seo-framework

보호된 프로퍼티들

프로퍼티 타입 설명
$doing_sitemap Checks if sitemap is being output.
$max_posts Maximum number of posts that show up in the sitemap.xml page.
$pretty_permalinks Checks for pretty permalinks.

공개 메소드들

메소드 설명
can_run_sitemap ( ) : boolean Whether we can output sitemap or not based on options.
enqueue_rewrite_activate ( boolean $enqueue = false ) : boolean Enqueue rewrite flush for activation.
enqueue_rewrite_deactivate ( boolean $enqueue = false ) : boolean Enqueue rewrite flush for deactivation.
enqueue_rewrite_flush_other ( boolean $enqueue = false ) : boolean Enqueue rewrite flush for deactivation.
enqueue_sitemap_query_vars ( $vars ) Register the_seo_framework_sitemap to wp_query
flush_rewrite_rules ( ) Initialize and flush rewrite rules.
flush_rewrite_rules_activation ( ) Add and Flush rewrite rules on plugin settings change.
flush_rewrite_rules_deactivation ( ) Flush rewrite rules on settings change.
maybe_flush_rewrite ( ) Flush rewrite rules based on static variables.
maybe_output_sitemap ( ) : void | header+string Maybe Output sitemap.xml 'file' and header.
ping_bing ( ) Ping Bing
ping_google ( ) Ping Google
ping_searchengines ( ) Ping search engines on post publish.
ping_yandex ( ) Ping Yandex
rewrite_rule_sitemap ( $run = false ) Adds rewrite rule to WordPress This rule defines the sitemap.xml output
robots_txt ( $robots_txt = '', $public = '' ) Edits the robots.txt output
setup_sitemap ( $sitemap_content ) : string Create sitemap.xml content transient.

보호된 메소드들

메소드 설명
__construct ( ) Constructor, load parent constructor and set up caches.
clean_up_globals ( boolean $get_freed_memory = false ) : integer Destroy unused $GLOBALS.
generate_sitemap ( ) : string Generate sitemap.xml content.
get_sitemap_content ( ) : string Output sitemap.xml content from transient.
output_sitemap ( ) Output sitemap.xml 'file' and header.

메소드 상세

__construct() 보호된 메소드

Constructor, load parent constructor and set up caches.
protected __construct ( )

can_run_sitemap() 공개 메소드

Whether we can output sitemap or not based on options.
부터: 2.6.0
public can_run_sitemap ( ) : boolean
리턴 boolean

clean_up_globals() 보호된 메소드

Destroy unused $GLOBALS.
부터: 2.6.0
protected clean_up_globals ( boolean $get_freed_memory = false ) : integer
$get_freed_memory boolean Whether to return the freed memory in bytes.
리턴 integer $freed_memory

enqueue_rewrite_activate() 공개 메소드

Enqueue rewrite flush for activation.
부터: 2.3.0
public enqueue_rewrite_activate ( boolean $enqueue = false ) : boolean
$enqueue boolean Whether to enqueue the flush or return its state.
리턴 boolean Whether to flush.

enqueue_rewrite_deactivate() 공개 메소드

Enqueue rewrite flush for deactivation.
부터: 2.3.0
public enqueue_rewrite_deactivate ( boolean $enqueue = false ) : boolean
$enqueue boolean Whether to enqueue the flush or return its state.
리턴 boolean Whether to flush.

enqueue_rewrite_flush_other() 공개 메소드

Enqueue rewrite flush for deactivation.
부터: 2.6.0
public enqueue_rewrite_flush_other ( boolean $enqueue = false ) : boolean
$enqueue boolean Whether to enqueue the flush or return its state.
리턴 boolean Whether to flush.

enqueue_sitemap_query_vars() 공개 메소드

Register the_seo_framework_sitemap to wp_query
부터: 2.2.9
public enqueue_sitemap_query_vars ( $vars )

flush_rewrite_rules() 공개 메소드

Initialize and flush rewrite rules.
부터: 2.6.0
public flush_rewrite_rules ( )

flush_rewrite_rules_activation() 공개 메소드

Add and Flush rewrite rules on plugin settings change.
부터: 2.6.6.1

flush_rewrite_rules_deactivation() 공개 메소드

Flush rewrite rules on settings change.
부터: 2.6.6.1

generate_sitemap() 보호된 메소드

Generate sitemap.xml content.
부터: 2.2.9
protected generate_sitemap ( ) : string
리턴 string The sitemap content.

get_sitemap_content() 보호된 메소드

Output sitemap.xml content from transient.
부터: 2.2.9
protected get_sitemap_content ( ) : string
리턴 string Sitemap XML contents.

maybe_flush_rewrite() 공개 메소드

Flush rewrite rules based on static variables.
부터: 2.3.0
public maybe_flush_rewrite ( )

maybe_output_sitemap() 공개 메소드

Maybe Output sitemap.xml 'file' and header.
부터: 2.2.9
public maybe_output_sitemap ( ) : void | header+string
리턴 void | header+string

output_sitemap() 보호된 메소드

Output sitemap.xml 'file' and header.
부터: 2.2.9
protected output_sitemap ( )

ping_bing() 공개 메소드

Ping Bing
부터: 2.2.9
public ping_bing ( )

ping_google() 공개 메소드

Ping Google
부터: 2.2.9
public ping_google ( )

ping_searchengines() 공개 메소드

Ping search engines on post publish.
부터: 2.2.9
public ping_searchengines ( )

ping_yandex() 공개 메소드

Ping Yandex
부터: 2.6.0
public ping_yandex ( )

rewrite_rule_sitemap() 공개 메소드

Adds rewrite rule to WordPress This rule defines the sitemap.xml output
부터: 2.2.9
public rewrite_rule_sitemap ( $run = false )

robots_txt() 공개 메소드

Requires not to have a robots.txt file in the root directory
부터: 2.2.9
public robots_txt ( $robots_txt = '', $public = '' )

setup_sitemap() 공개 메소드

Create sitemap.xml content transient.
부터: 2.6.0
public setup_sitemap ( $sitemap_content ) : string
리턴 string The sitemap content.

프로퍼티 상세

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

Checks if sitemap is being output.
부터: 2.5.2
protected $doing_sitemap

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

Maximum number of posts that show up in the sitemap.xml page.
부터: 2.2.9
protected $max_posts