PluginProbe ʕ •ᴥ•ʔ
پارسی دیت – Parsi Date / 6.2.1
پارسی دیت – Parsi Date v6.2.1
6.2.1 6.2 6.1 5.1.6 5.1.7 5.1.8 5.1.8.2 6.0 trunk 1.0 1.1 1.2 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.0.0-alpha 2.1 2.1.1 2.1.2 2.1.3 2.1.5 2.1.6 2.1.7 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0.1 2.3.0.2 2.3.1 2.3.2 2.3.3 2.3.4 3.0.1 3.0.2 3.0.3 4.0.0 4.0.1 4.0.2 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5
wp-parsidate / inc / App / Integration / SchemaPro.php
wp-parsidate / inc / App / Integration Last commit date
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