first commit

This commit is contained in:
2023-09-12 21:41:04 +02:00
commit 3361a7f053
13284 changed files with 2116755 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace WPML\TM\Menu\McSetup;
use WPML\WP\OptionManager;
class CfMetaBoxOption {
const GROUP = 'core';
const CF_META_BOX_OPTION_KEY = 'show_cf_meta_box';
/**
* @return boolean
*/
public static function get() {
return OptionManager::getOr( false, self::GROUP, self::CF_META_BOX_OPTION_KEY );
}
/**
* @param boolean $value
*/
public static function update( $value ) {
OptionManager::updateWithoutAutoLoad( self::GROUP, self::CF_META_BOX_OPTION_KEY, $value );
}
}