PHP Class The_SEO_Framework\Sitemaps

Handles sitemap output.
Since: 2.7.1
Inheritance: extends Metaboxes
Afficher le fichier Open project: sybrew/the-seo-framework

Protected Properties

Свойство 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.

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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.

Method Details

__construct() protected méthode

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

can_run_sitemap() public méthode

Whether we can output sitemap or not based on options.
Since: 2.6.0
public can_run_sitemap ( ) : boolean
Résultat boolean

clean_up_globals() protected méthode

Destroy unused $GLOBALS.
Since: 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.
Résultat integer $freed_memory

enqueue_rewrite_activate() public méthode

Enqueue rewrite flush for activation.
Since: 2.3.0
public enqueue_rewrite_activate ( boolean $enqueue = false ) : boolean
$enqueue boolean Whether to enqueue the flush or return its state.
Résultat boolean Whether to flush.

enqueue_rewrite_deactivate() public méthode

Enqueue rewrite flush for deactivation.
Since: 2.3.0
public enqueue_rewrite_deactivate ( boolean $enqueue = false ) : boolean
$enqueue boolean Whether to enqueue the flush or return its state.
Résultat boolean Whether to flush.

enqueue_rewrite_flush_other() public méthode

Enqueue rewrite flush for deactivation.
Since: 2.6.0
public enqueue_rewrite_flush_other ( boolean $enqueue = false ) : boolean
$enqueue boolean Whether to enqueue the flush or return its state.
Résultat boolean Whether to flush.

enqueue_sitemap_query_vars() public méthode

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

flush_rewrite_rules() public méthode

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

flush_rewrite_rules_activation() public méthode

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

flush_rewrite_rules_deactivation() public méthode

Flush rewrite rules on settings change.
Since: 2.6.6.1

generate_sitemap() protected méthode

Generate sitemap.xml content.
Since: 2.2.9
protected generate_sitemap ( ) : string
Résultat string The sitemap content.

get_sitemap_content() protected méthode

Output sitemap.xml content from transient.
Since: 2.2.9
protected get_sitemap_content ( ) : string
Résultat string Sitemap XML contents.

maybe_flush_rewrite() public méthode

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

maybe_output_sitemap() public méthode

Maybe Output sitemap.xml 'file' and header.
Since: 2.2.9
public maybe_output_sitemap ( ) : void | header+string
Résultat void | header+string

output_sitemap() protected méthode

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

ping_bing() public méthode

Ping Bing
Since: 2.2.9
public ping_bing ( )

ping_google() public méthode

Ping Google
Since: 2.2.9
public ping_google ( )

ping_searchengines() public méthode

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

ping_yandex() public méthode

Ping Yandex
Since: 2.6.0
public ping_yandex ( )

rewrite_rule_sitemap() public méthode

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

robots_txt() public méthode

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

setup_sitemap() public méthode

Create sitemap.xml content transient.
Since: 2.6.0
public setup_sitemap ( $sitemap_content ) : string
Résultat string The sitemap content.

Property Details

$doing_sitemap protected_oe property

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

$max_posts protected_oe property

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