Свойство | Тип | Описание | |
---|---|---|---|
$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. |
protected __construct ( ) |
public can_run_sitemap ( ) : boolean | ||
Результат | boolean |
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 |
public enqueue_rewrite_activate ( boolean $enqueue = false ) : boolean | ||
$enqueue | boolean | Whether to enqueue the flush or return its state. |
Результат | boolean | Whether to flush. |
public enqueue_rewrite_deactivate ( boolean $enqueue = false ) : boolean | ||
$enqueue | boolean | Whether to enqueue the flush or return its state. |
Результат | boolean | Whether to flush. |
public enqueue_rewrite_flush_other ( boolean $enqueue = false ) : boolean | ||
$enqueue | boolean | Whether to enqueue the flush or return its state. |
Результат | boolean | Whether to flush. |
public enqueue_sitemap_query_vars ( $vars ) |
public flush_rewrite_rules ( ) |
public flush_rewrite_rules_activation ( ) |
public flush_rewrite_rules_deactivation ( ) |
protected generate_sitemap ( ) : string | ||
Результат | string | The sitemap content. |
protected get_sitemap_content ( ) : string | ||
Результат | string | Sitemap XML contents. |
public maybe_flush_rewrite ( ) |
public maybe_output_sitemap ( ) : void | header+string | ||
Результат | void | header+string |
protected output_sitemap ( ) |
public ping_searchengines ( ) |
public rewrite_rule_sitemap ( $run = false ) |
public robots_txt ( $robots_txt = '', $public = '' ) |
public setup_sitemap ( $sitemap_content ) : string | ||
Результат | string | The sitemap content. |
protected $max_posts |