for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace GeminiLabs\Pollux\MetaBox;
use GeminiLabs\Pollux\MetaBox\SiteMetaManager;
use GeminiLabs\Pollux\PostType\Archive;
/**
* ArchiveMeta::all();
* ArchiveMeta::group();
* ArchiveMeta::group('option','fallback');
* ArchiveMeta::get('group');
* ArchiveMeta::get('group','option','fallback');
*/
class ArchiveMetaManager extends SiteMetaManager
{
public function __construct()
$this->options = get_option( Archive::id(), [] );
}
* @param string|null $key
* @param mixed $fallback
* @param string $group
* @return mixed
public function get( $key = '', $fallback = null, $group = '' )
return parent::get( $group, $key, $fallback );
* @return string
protected function getDefaultGroup()
return get_post_type();