ACF.php
1 day ago
BeaverBuilder.php
1 day ago
BuddyPress.php
1 day ago
EventsCalendar.php
1 day ago
Filter.php
1 day ago
GravityForms.php
1 day ago
IntegrationRepository.php
1 day ago
JetEngine.php
1 day ago
MediaLibraryAssistant.php
1 day ago
MetaBox.php
1 day ago
Pods.php
1 day ago
RankMath.php
1 day ago
SeoPress.php
1 day ago
Types.php
1 day ago
WooCommerce.php
1 day ago
YoastSeo.php
1 day ago
ACF.php
44 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace AC\Integration; |
| 6 | |
| 7 | use AC; |
| 8 | use AC\Screen; |
| 9 | use AC\Type\Integration; |
| 10 | use AC\Type\Url\External; |
| 11 | use AC\Type\Url\Site; |
| 12 | |
| 13 | final class ACF extends Integration |
| 14 | { |
| 15 | public function __construct() |
| 16 | { |
| 17 | parent::__construct( |
| 18 | 'ac-addon-acf', |
| 19 | __('Advanced Custom Fields', 'codepress-admin-columns'), |
| 20 | 'assets/images/addons/acf-v2.png', |
| 21 | __( |
| 22 | 'See every ACF field directly in your list table - and edit values without opening a single post. Sort, filter, and bulk edit across all field types including repeaters, groups, and relationships.', |
| 23 | 'codepress-admin-columns' |
| 24 | ), |
| 25 | new External('https://www.advancedcustomfields.com'), |
| 26 | new Site(Site::PAGE_ADDON_ACF) |
| 27 | ); |
| 28 | } |
| 29 | |
| 30 | public function is_plugin_active(): bool |
| 31 | { |
| 32 | return AC\Acf::is_active(); |
| 33 | } |
| 34 | |
| 35 | public function show_notice(Screen $screen): bool |
| 36 | { |
| 37 | return in_array($screen->get_id(), [ |
| 38 | 'edit-acf-field-group', |
| 39 | 'acf-field-group', |
| 40 | ]); |
| 41 | } |
| 42 | |
| 43 | } |
| 44 |