Skip to content
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

Merged
merged 4 commits into from
May 20, 2024
Merged

Conversation

mamatharao05
Copy link
Contributor

@mamatharao05 mamatharao05 commented May 13, 2024

Added hook to suppress WP-Form notice using CSS for Bluehost, Hostgator and Crazy domains.

Ticket: https://jira.newfold.com/browse/PRESS0-1248

Before
image

After
image


public function hide_wp_pointer_with_css() {
$brand = $this->container->plugin()->id;
if ( 'bluehost' === $brand || 'hostgator' === $brand ) {
Copy link
Contributor

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?

Copy link
Contributor Author

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.


public function hide_wp_pointer_with_css() {
$brand = $this->container->plugin()->id;
if ( 'bluehost' === $brand || 'hostgator' === $brand ) {
Copy link
Contributor

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

Copy link
Contributor Author

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 ) ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No Yoda here?

Copy link
Contributor Author

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.

@mamatharao05 mamatharao05 requested a review from aratidgr8 May 17, 2024 06:07
@ramyakrishnai ramyakrishnai merged commit 0bf9dfe into trunk May 20, 2024
3 of 5 checks passed
@ramyakrishnai ramyakrishnai deleted the PRESS0-1248-Supress-Wpform-Notice branch May 20, 2024 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants