ACF.php
3 months ago
BeaverBuilder.php
3 months ago
BuddyPress.php
3 months ago
EventsCalendar.php
3 months ago
Filter.php
3 months ago
GravityForms.php
3 months ago
IntegrationRepository.php
3 months ago
JetEngine.php
3 months ago
MediaLibraryAssistant.php
3 months ago
MetaBox.php
3 months ago
Pods.php
3 months ago
RankMath.php
3 months ago
SeoPress.php
3 months ago
Types.php
3 months ago
WooCommerce.php
3 months ago
YoastSeo.php
3 months ago
MetaBox.php
37 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AC\Integration; |
| 4 | |
| 5 | use AC\Screen; |
| 6 | use AC\Type\Integration; |
| 7 | use AC\Type\Url\Site; |
| 8 | |
| 9 | final class MetaBox extends Integration |
| 10 | { |
| 11 | |
| 12 | public function __construct() |
| 13 | { |
| 14 | parent::__construct( |
| 15 | 'ac-addon-metabox', |
| 16 | __('Meta Box', 'codepress-admin-columns'), |
| 17 | 'assets/images/addons/metabox.svg', |
| 18 | __( |
| 19 | 'Display Meta Box fields as sortable, editable columns. Filter by custom fields, bulk update values, and manage your Meta Box content from a single overview.', |
| 20 | 'codepress-admin-columns' |
| 21 | ), |
| 22 | null, |
| 23 | new Site(Site::PAGE_ADDON_METABOX) |
| 24 | ); |
| 25 | } |
| 26 | |
| 27 | public function is_plugin_active(): bool |
| 28 | { |
| 29 | return class_exists('RWMB_Loader', false); |
| 30 | } |
| 31 | |
| 32 | public function show_notice(Screen $screen): bool |
| 33 | { |
| 34 | return $screen->get_id() === 'edit-meta-box'; |
| 35 | } |
| 36 | |
| 37 | } |