Skip to content

Commit

Permalink
Merge pull request #250 from Codeinwp/fix/17
Browse files Browse the repository at this point in the history
Hide redirection for CF7 promo notice
  • Loading branch information
vytisbulkevicius authored Aug 5, 2024
2 parents a0bd4f9 + fdaa28a commit 0d36293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Modules/Promotions.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ private function get_promotions() {
$has_woocommerce = class_exists( 'WooCommerce' );
$has_sparks = defined( 'SPARKS_WC_VERSION' ) || $this->is_plugin_installed( 'sparks-for-woocommerce' );
$has_ppom = defined( 'PPOM_VERSION' ) || $this->is_plugin_installed( 'woocommerce-product-addon' );
$has_redirection_cf7 = defined( 'OPTIMOLE_VERSION' ) || $this->is_plugin_installed( 'optimole-wp' );
$has_redirection_cf7 = defined( 'WPCF7_PRO_REDIRECT_PLUGIN_VERSION' ) || $this->is_plugin_installed( 'wpcf7-redirect' );
$had_redirection_cf7_promo = get_option( $this->option_optimole, false );
$is_min_req_v = version_compare( get_bloginfo( 'version' ), '5.8', '>=' );
$is_min_fse_v = version_compare( get_bloginfo( 'version' ), '6.2', '>=' );
Expand Down

0 comments on commit 0d36293

Please sign in to comment.