PluginProbe
Polylang / 3.8
Polylang v3.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 / src / Options / Registry.php

Registry.php in Polylang 3.8, at src/Options/Registry.php

53 lines 1.1 KB
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 namespace WP_Syntex\Polylang\Options;
7
8 defined( 'ABSPATH' ) || exit;
9
10 /**
11 * Polylang's options registry.
12 *
13 * @since 3.7
14 */
15 class Registry {
16 protected const OPTIONS = array(
17 // URL modifications.
18 Business\Force_Lang::class,
19 Business\Domains::class,
20 Business\Hide_Default::class,
21 Business\Rewrite::class,
22 Business\Redirect_Lang::class,
23 // Detect browser language.
24 Business\Browser::class,
25 // Media.
26 Business\Media_Support::class,
27 // Custom post types and taxonomies.
28 Business\Post_Types::class,
29 Business\Taxonomies::class,
30 // Synchronization.
31 Business\Sync::class,
32 // Internal.
33 Business\Default_Lang::class,
34 Business\Nav_Menus::class,
35 // Read only.
36 Business\First_Activation::class,
37 Business\Previous_Version::class,
38 Business\Version::class,
39 );
40
41 /**
42 * Registers Polylang's options.
43 *
44 * @since 3.7
45 *
46 * @param Options $options Instance of the options.
47 * @return void
48 */
49 public static function register( Options $options ): void {
50 array_map( array( $options, 'register' ), static::OPTIONS );
51 }
52 }
53