PluginProbe
Post Grid Gutenberg Blocks – PostX / 5.0.41
Post Grid Gutenberg Blocks – PostX v5.0.41
5.0.41 5.0.39 5.0.38 5.0.37 5.0.36 5.0.35 5.0.34 5.0.33 5.0.32 5.0.31 5.0.30 5.0.29 5.0.28 5.0.27 5.0.26 5.0.25 5.0.23 5.0.24 5.0.22 5.0.21 5.0.20 5.0.19 5.0.18 5.0.17 2.1.1 All 238 releases
← All changes | classes/Importer.php +18 -18 5.0.235.0.41 View file →
@@ -563,26 +563,26 @@
563 563 }
564 564 }
565 565 $wow_optin_template_import_status = 'successfully working';
566 566
567 - $activated_plugins = $installed_plugin == 'yes' ? apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) : array();
568 - if ( in_array( 'optin/optin.php', $activated_plugins ) && $wow_optin_template_id && $installed_plugin == 'yes' ) {
569 - try {
570 - if ( class_exists( '\OPTN\Includes\Db', true ) && method_exists( '\OPTN\Includes\Db', 'get_instance' ) ) {
571 - $db_instance = \OPTN\Includes\Db::get_instance();
572 - if ( is_object( $db_instance ) && is_callable( array( $db_instance, 'activate_recipe' ) ) ) {
573 - $db_instance->activate_recipe(
574 - $wow_optin_template_id,
575 - array(
576 - 'disable_others' => true,
577 - )
578 - );
579 - }
580 - }
581 - } catch ( \Throwable $e ) {
582 - $wow_optin_template_import_status = 'have any problem to import Optin template.';
583 - }
584 - }
567 + // $activated_plugins = $installed_plugin == 'yes' ? apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) : array();
568 + // if ( in_array( 'optin/optin.php', $activated_plugins ) && $wow_optin_template_id && $installed_plugin == 'yes' ) {
569 + // try {
570 + // if ( class_exists( '\OPTN\Includes\Db', true ) && method_exists( '\OPTN\Includes\Db', 'get_instance' ) ) {
571 + // $db_instance = \OPTN\Includes\Db::get_instance();
572 + // if ( is_object( $db_instance ) && is_callable( array( $db_instance, 'activate_recipe' ) ) ) {
573 + // $db_instance->activate_recipe(
574 + // $wow_optin_template_id,
575 + // array(
576 + // 'disable_others' => true,
577 + // )
578 + // );
579 + // }
580 + // }
581 + // } catch ( \Throwable $e ) {
582 + // $wow_optin_template_import_status = 'have any problem to import Optin template.';
583 + // }
584 + // }
585 585 // $wow_optin_template_import_status
586 586 return rest_ensure_response(
587 587 array(
588 588 'success' => true,