PluginProbe
Polylang / 3.2.8
Polylang v3.2.8
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
polylang / modules / sitemaps / abstract-sitemaps.php

abstract-sitemaps.php in Polylang 3.2.8, at modules/sitemaps/abstract-sitemaps.php

38 lines 684 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package Polylang
4 */
5
6 /**
7 * Common class for handling the core sitemaps.
8 *
9 * The child classes must called the init() method.
10 *
11 * @since 3.0
12 */
13 abstract class PLL_Abstract_Sitemaps {
14 /**
15 * Setups actions and filters.
16 *
17 * @since 2.8
18 *
19 * @return void
20 */
21 public function init() {
22 add_filter( 'pll_home_url_white_list', array( $this, 'home_url_white_list' ) );
23 }
24
25 /**
26 * Whitelists the home url filter for the sitemaps.
27 *
28 * @since 2.8
29 *
30 * @param array $whitelist White list.
31 * @return array;
32 */
33 public function home_url_white_list( $whitelist ) {
34 $whitelist[] = array( 'file' => 'class-wp-sitemaps-posts' );
35 return $whitelist;
36 }
37 }
38