Skip to content

Commit

Permalink
Suppress wp-pointer using css
Browse files Browse the repository at this point in the history
  • Loading branch information
mamatharao05 committed May 13, 2024
1 parent 5bd89ce commit 2603212
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions includes/ECommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ public function __construct( Container $container ) {
add_filter( 'manage_edit-page_sortable_columns', array( $this, 'sortable_columns' ) );
add_action( 'wp_login', array( $this, 'show_store_setup' ) );
add_action( 'auth_cookie_expired', array( $this, 'show_store_setup' ) );

add_action('admin_enqueue_scripts', array( $this, 'set_wpnav_collapse_setting'));
add_action('admin_head', array( $this, 'hide_wp_pointer_with_css' ) );
add_action('admin_enqueue_scripts', array( $this, 'set_wpnav_collapse_setting'));

if ( ( $container->plugin()->id === 'bluehost' && ( $canAccessGlobalCTB || $hasYithExtended ) ) || ( $container->plugin()->id === 'hostgator' && $hasYithExtended ) ) {
add_filter( 'admin_menu', array( $this, 'custom_add_promotion_menu_item' ) );
Expand Down Expand Up @@ -675,4 +675,19 @@ function check_url_match( $brand_name, $site_url ) {
update_option( 'showMigrationSteps', false );
}
}

/**
* Suppress WP-Form Notice using css
*
* @return void
*/

public function hide_wp_pointer_with_css() {
$brand = $this->container->plugin()->id;
if ( 'bluehost' === $brand || 'hostgator' === $brand ) {
echo '<style>
.wp-pointer { display: none !important; }
</style>';
}
}
}

0 comments on commit 2603212

Please sign in to comment.