-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suppress wp-pointer using css #306
Conversation
includes/ECommerce.php
Outdated
|
||
public function hide_wp_pointer_with_css() { | ||
$brand = $this->container->plugin()->id; | ||
if ( 'bluehost' === $brand || 'hostgator' === $brand ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we using Yoda
in Ecommerce as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aratidgr8 This is the newfold standard. So I followed here too.
includes/ECommerce.php
Outdated
|
||
public function hide_wp_pointer_with_css() { | ||
$brand = $this->container->plugin()->id; | ||
if ( 'bluehost' === $brand || 'hostgator' === $brand ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we need this for crazy-domains
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated. Applicable for Bluehost, Hostgator and crazy domains.
|
||
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 ) ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No Yoda here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't made any changes to the existing code.
…mmerce into PRESS0-1248-Supress-Wpform-Notice
Added hook to suppress WP-Form notice using CSS for Bluehost, Hostgator and Crazy domains.
Ticket: https://jira.newfold.com/browse/PRESS0-1248
Before

After
