ACF.php
2 days ago
BeaverBuilder.php
2 days ago
BuddyPress.php
2 days ago
EventsCalendar.php
2 days ago
Filter.php
2 days ago
GravityForms.php
2 days ago
IntegrationRepository.php
2 days ago
JetEngine.php
2 days ago
MediaLibraryAssistant.php
2 days ago
MetaBox.php
2 days ago
Pods.php
2 days ago
RankMath.php
2 days ago
SeoPress.php
2 days ago
Types.php
2 days ago
WooCommerce.php
2 days ago
YoastSeo.php
2 days ago
Types.php
39 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace AC\Integration; |
| 6 | |
| 7 | use AC\Screen; |
| 8 | use AC\Type\Integration; |
| 9 | use AC\Type\Url\Site; |
| 10 | |
| 11 | final class Types extends Integration |
| 12 | { |
| 13 | public function __construct() |
| 14 | { |
| 15 | parent::__construct( |
| 16 | 'ac-addon-types', |
| 17 | __('Toolset Types', 'codepress-admin-columns'), |
| 18 | 'assets/images/addons/toolset-types.png', |
| 19 | __( |
| 20 | 'Bring Toolset custom fields and post relationships into the list table. Sort and filter by any Toolset field, and edit values directly without switching screens.', |
| 21 | 'codepress-admin-columns' |
| 22 | ), |
| 23 | null, |
| 24 | new Site(Site::PAGE_ADDON_TOOLSET_TYPES) |
| 25 | ); |
| 26 | } |
| 27 | |
| 28 | public function is_plugin_active(): bool |
| 29 | { |
| 30 | return class_exists('Types_Main', false); |
| 31 | } |
| 32 | |
| 33 | public function show_notice(Screen $screen): bool |
| 34 | { |
| 35 | return $screen->is_screen('edit-custom-toolset-type'); |
| 36 | } |
| 37 | |
| 38 | } |
| 39 |