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
RankMath.php
38 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AC\Integration; |
| 4 | |
| 5 | use AC\Screen; |
| 6 | use AC\Type\Integration; |
| 7 | use AC\Type\Url\Site; |
| 8 | |
| 9 | final class RankMath extends Integration |
| 10 | { |
| 11 | |
| 12 | public function __construct() |
| 13 | { |
| 14 | parent::__construct( |
| 15 | 'ac-addon-rankmath', |
| 16 | 'RankMath', |
| 17 | 'assets/images/addons/rank-math.svg', |
| 18 | __( |
| 19 | 'See your SEO data where you manage your content. View focus keywords, SEO scores, and schema status as columns - then filter and sort to find pages that need attention.', |
| 20 | 'codepress-admin-columns' |
| 21 | ), |
| 22 | null, |
| 23 | new Site(Site::PAGE_ADDON_RANK_MATH) |
| 24 | ); |
| 25 | } |
| 26 | |
| 27 | public function is_plugin_active(): bool |
| 28 | { |
| 29 | return class_exists('RankMath'); |
| 30 | } |
| 31 | |
| 32 | public function show_notice(Screen $screen): bool |
| 33 | { |
| 34 | // RankMath prevents messages/logs from loading on their settings page |
| 35 | return false; |
| 36 | } |
| 37 | |
| 38 | } |