ACF
3 weeks ago
WooCommerce
3 weeks ago
ACF.php
3 weeks ago
BulkyBulkEditProductsWooCommerce.php
3 weeks ago
EDD.php
3 weeks ago
Elementor.php
3 weeks ago
Formello.php
3 weeks ago
Integration.php
3 weeks ago
JetEngine.php
3 weeks ago
LimitLoginAttempts.php
3 weeks ago
MonsterInsights.php
3 weeks ago
RankMath.php
3 weeks ago
SchemaPro.php
3 weeks ago
UltimateMember.php
3 weeks ago
WooCommerce.php
3 weeks ago
SchemaPro.php
53 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Makes Schema Pro compatible with WP-Parsidate plugin |
| 4 | * |
| 5 | * @package WP-Parsidate |
| 6 | * @subpackage Plugins/SchemaPro |
| 7 | */ |
| 8 | |
| 9 | namespace WPParsidate\App\Integration; |
| 10 | |
| 11 | defined( 'ABSPATH' ) || exit; |
| 12 | |
| 13 | use WPParsidate\Addons\Addon; |
| 14 | |
| 15 | class SchemaPro extends Addon { |
| 16 | public string $addonID = 'wp_schema_pro'; |
| 17 | |
| 18 | public function initAction(): void { |
| 19 | add_filter( 'wp_parsidate_hook_deactivator_raw_list', [ $this, 'addDateHooksToDeactivator' ] ); |
| 20 | } |
| 21 | |
| 22 | public function addDateHooksToDeactivator( $rawList ): string { |
| 23 | $rawList .= "\nget_the_date,get_post_data,BSF_AIOSRS_Pro_Schema_Template\nwp_date,get_post_data,BSF_AIOSRS_Pro_Schema_Template"; |
| 24 | |
| 25 | return $rawList; |
| 26 | } |
| 27 | |
| 28 | public function info(): array { |
| 29 | $svg = '<svg xmlns="http://www.w3.org/2000/svg" x="0" y="0" version="1.1" viewBox="0.055 -0.346 26.893 24.25"><style>.st3{fill:#fff}</style><path d="M26.7 19.9c0 2.1-1.7 3.8-3.8 3.8s-3.8-1.7-3.8-3.8V3.6c0-2.1 1.7-3.8 3.8-3.8s3.8 1.7 3.8 3.8z" style="fill:#f71568"/><path d="M17.2 19.9c0 2.1-1.7 3.8-3.8 3.8S9.6 22 9.6 19.9v-9.6c0-2.1 1.7-3.8 3.8-3.8s3.8 1.7 3.8 3.8z" style="fill:#ea6ea6"/><path d="M7.8 19.9c0 2.1-1.7 3.8-3.8 3.8S.2 22 .2 19.9V18c0-2.1 1.7-3.8 3.8-3.8s3.8 1.7 3.8 3.8z" style="fill:#e291ba"/></svg>'; |
| 30 | |
| 31 | return array( |
| 32 | 'id' => $this->addonID, |
| 33 | 'title' => esc_html__( 'Schema Pro', 'wp-parsidate' ), |
| 34 | 'desc' => esc_html__( 'ParsiDate integration for Schema Pro', 'wp-parsidate' ), |
| 35 | 'force_enable' => true, |
| 36 | 'icon' => $svg, |
| 37 | 'image_link' => 'https://wpschema.com', |
| 38 | 'tags' => [ esc_html__( 'Schema', 'wp-parsidate' ) ], |
| 39 | 'cat' => 'integration', |
| 40 | 'settings_key' => $this->addonID, |
| 41 | 'requires_plugins' => [ |
| 42 | 'wp-schema-pro/wp-schema-pro.php' => array( |
| 43 | 'is_wp_plugin' => false, |
| 44 | 'is_free' => false, |
| 45 | 'plugin_link' => 'https://wpschema.com', |
| 46 | 'class_check' => 'BSF_AIOSRS_Pro_Schema', |
| 47 | 'define_check' => 'BSF_AIOSRS_PRO_VER', |
| 48 | ) |
| 49 | ] |
| 50 | ); |
| 51 | } |
| 52 | } |
| 53 |