| 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 |
|