ACF.php
5 years ago
BuddyPress.php
5 years ago
EventsCalendar.php
5 years ago
GravityForms.php
5 years ago
MetaBox.php
5 years ago
NinjaForms.php
5 years ago
Pods.php
5 years ago
Types.php
5 years ago
WooCommerce.php
5 years ago
YoastSeo.php
5 years ago
MetaBox.php
30 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AC\Integration; |
| 4 | |
| 5 | use AC\Integration; |
| 6 | use AC\Screen; |
| 7 | use AC\Type\Url\Site; |
| 8 | |
| 9 | final class MetaBox extends Integration { |
| 10 | |
| 11 | public function __construct() { |
| 12 | parent::__construct( |
| 13 | 'ac-addon-metabox/ac-addon-metabox.php', |
| 14 | __( 'Meta Box', 'codepress-admin-columns' ), |
| 15 | 'assets/images/addons/metabox.svg', |
| 16 | __( 'Instantly generate columns for your Meta Box custom fields!', 'codepress-admin-columns' ), |
| 17 | null, |
| 18 | new Site( Site::PAGE_ADDON_METABOX ) |
| 19 | ); |
| 20 | } |
| 21 | |
| 22 | public function is_plugin_active() { |
| 23 | return class_exists( 'RWMB_Loader', false ); |
| 24 | } |
| 25 | |
| 26 | public function show_notice( Screen $screen ) { |
| 27 | return $screen->get_id() === 'edit-meta-box'; |
| 28 | } |
| 29 | |
| 30 | } |