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