AI Verified

Name

Disable Jetpack Promotions and Notices in WP Admin [SnipSnip.pro]

About

Disable Jetpack Promotions and Notices in WP Admin [SnipSnip.pro] - <a href="https://snipsnip.pro/s/629">https://snipsnip.pro/s/629</a>

Language

PHP

Rating

Voted: 1 by 1 user(s)

How to Setup Snippet

Set this to Admin Only then Activate

Link for further information:

The author has provided the following URL that may be helpful to setting up or using this snippet:

https://snipsnip.pro/s/629

Codevault

brandonjp

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: 6.1

Our AI bot has checked this snippet is compatable up to wordpress version: 6.1

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

Snippet Source:

https://snipsnip.pro/s/629

History

Last modified:

09/12/2023

Important Note

This snippet has the following status:

AI Verified

This snippet has been tested by our AI bot, see any comments below.

AI Bot Comments:

Found 0 vulnerabilities

Disable Jetpack Promotions and Notices in WP Admin [SnipSnip.pro]

 
                    
1// Disable Jetpack Promotion Notices in WP Admin - https://snipsnip.pro/s/629
2if ( is_admin() && !class_exists( 'DisableJetpackPromotions' ) ) {
3 class DisableJetpackPromotions {
4 public function __construct() {
5 // Disable all Just-in-Time messages
6 add_filter( 'jetpack_just_in_time_msgs', '__return_false' );
7 add_filter( 'jetpack_just_in_time_msgs_allowed', '__return_false' );
8 add_filter( 'jetpack_just_in_time_msgs_allowed_list', '__return_empty_array' );
9 // Disable the Jetpack Highlight Reel feature
10 add_filter( 'jetpack_just_in_time_highlight_reel', '__return_false' );
11 // Use the basic promotion blockers
12 add_filter( 'jetpack_show_promotions', '__return_false', 20 );
13 add_filter( 'jetpack_blaze_enabled', '__return_false' );
14 }
15 }
16 new DisableJetpackPromotions();
17}

1

Related Snippets

Please see some snippets below related to this snippet..

WordPress Admin

AI Verified

0

Regenerate thumbnails - no extra plugin required.

Added: 1 year ago

Last Updated: 1 year ago

Created new image sizes? Changed themes? This code snippet will force WordPress to regenerate thumbnails without the need for any 3rd party plugin.

WordPress Admin

AI Verified

1

Display External Server IP

Added: 5 months ago

Last Updated: 3 months ago

This WordPress code snippet enhances the admin dashboard by adding a custom item to the WordPress admin bar labeled "Check External IP". This feature allows administrators to fetch and display the ext...

WordPress Admin

AI Verified

1

Disable Gutenberg Editor (use Classic Editor)

Added: 1 year ago

Last Updated: 1 year ago

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

Security

AI Verified

1

Users: Create & Delete n New Users in WP Admin [SnipSnip.pro]

Added: 9 months ago

Last Updated: 6 months ago

Users: Create &amp; Delete n New Users in WP Admin [SnipSnip.pro] - <a href="https://snipsnip.pro/s/799" target="_blank" rel="nofollow noopener">https://snipsnip.pro/s/799</a> - This creates then dele...

WordPress Admin

AI Verified

1

Randomize a Post Publish Date in the Classic Editor [SnipSnip.pro]

Added: 9 months ago

Last Updated: 9 months ago

<p>Randomize a Post Publish Date in the Classic Editor. Choose between the past 1, 3, 6, 12 months... or customize it to other options. Works in the Classic Editor only for now. <a href="https://snips...

WordPress Admin

AI Verified

1

Disable Jetpack Promotions and Notices in WP Admin [SnipSnip.pro]

Added: 8 months ago

Last Updated: 7 months ago

Disable Jetpack Promotions and Notices in WP Admin [SnipSnip.pro] - <a href="https://snipsnip.pro/s/629">https://snipsnip.pro/s/629</a>