Property | Type | Description | |
---|---|---|---|
$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. |
Method | Description | |
---|---|---|
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. |
Method | Description | |
---|---|---|
__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 | ||
return | boolean |
protected clean_up_globals ( boolean $get_freed_memory = false ) : integer | ||
$get_freed_memory | boolean | Whether to return the freed memory in bytes. |
return | integer | $freed_memory |
public enqueue_rewrite_activate ( boolean $enqueue = false ) : boolean | ||
$enqueue | boolean | Whether to enqueue the flush or return its state. |
return | boolean | Whether to flush. |
public enqueue_rewrite_deactivate ( boolean $enqueue = false ) : boolean | ||
$enqueue | boolean | Whether to enqueue the flush or return its state. |
return | boolean | Whether to flush. |
public enqueue_rewrite_flush_other ( boolean $enqueue = false ) : boolean | ||
$enqueue | boolean | Whether to enqueue the flush or return its state. |
return | 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 | ||
return | string | The sitemap content. |
protected get_sitemap_content ( ) : string | ||
return | string | Sitemap XML contents. |
public maybe_flush_rewrite ( ) |
public maybe_output_sitemap ( ) : void | header+string | ||
return | 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 | ||
return | string | The sitemap content. |
protected $max_posts |