PHP Класс The_SEO_Framework\Sitemaps

Handles sitemap output.
С версии: 2.7.1
Наследование: extends Metaboxes
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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