-
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' ) ); | ||
|
@@ -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 ) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are we using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @aratidgr8 This is the newfold standard. So I followed here too. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't we need this for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated. Applicable for Bluehost, Hostgator and crazy domains. |
||
echo '<style> | ||
.wp-pointer { display: none !important; } | ||
</style>'; | ||
} | ||
} | ||
} |
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.