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
RankMath.php
40 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 RankMath extends Integration |
| 12 | { |
| 13 | public function __construct() |
| 14 | { |
| 15 | parent::__construct( |
| 16 | 'ac-addon-rankmath', |
| 17 | 'RankMath', |
| 18 | 'assets/images/addons/rank-math.svg', |
| 19 | __( |
| 20 | '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.', |
| 21 | 'codepress-admin-columns' |
| 22 | ), |
| 23 | null, |
| 24 | new Site(Site::PAGE_ADDON_RANK_MATH) |
| 25 | ); |
| 26 | } |
| 27 | |
| 28 | public function is_plugin_active(): bool |
| 29 | { |
| 30 | return class_exists('RankMath'); |
| 31 | } |
| 32 | |
| 33 | public function show_notice(Screen $screen): bool |
| 34 | { |
| 35 | // RankMath prevents messages/logs from loading on their settings page |
| 36 | return false; |
| 37 | } |
| 38 | |
| 39 | } |
| 40 |