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
BuddyPress.php
45 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace AC\Integration; |
| 6 | |
| 7 | use AC\Screen; |
| 8 | use AC\TableScreen; |
| 9 | use AC\Type\Integration; |
| 10 | use AC\Type\Url\Site; |
| 11 | |
| 12 | final class BuddyPress extends Integration |
| 13 | { |
| 14 | public function __construct() |
| 15 | { |
| 16 | parent::__construct( |
| 17 | 'ac-addon-buddypress', |
| 18 | __('BuddyPress', 'codepress-admin-columns'), |
| 19 | 'assets/images/addons/buddypress.png', |
| 20 | __( |
| 21 | 'Add BuddyPress profile fields, registration dates, and group data to your member and group tables. Filter by any field to find exactly the members you need.', |
| 22 | 'codepress-admin-columns' |
| 23 | ), |
| 24 | null, |
| 25 | new Site(Site::PAGE_ADDON_BUDDYPRESS) |
| 26 | ); |
| 27 | } |
| 28 | |
| 29 | public function is_plugin_active(): bool |
| 30 | { |
| 31 | return class_exists('BuddyPress', false); |
| 32 | } |
| 33 | |
| 34 | public function show_notice(Screen $screen): bool |
| 35 | { |
| 36 | return 'users' === $screen->get_id(); |
| 37 | } |
| 38 | |
| 39 | public function show_placeholder(TableScreen $table_screen): bool |
| 40 | { |
| 41 | return $table_screen instanceof TableScreen\User; |
| 42 | } |
| 43 | |
| 44 | } |
| 45 |