Tagged: JetPack Toggle Comment Threads | Keyboard Shortcuts

  • Jay Versluis 6:38 pm on November 5, 2017 Permalink | Reply
    Tags: JetPack   

    Categories: WordPress ( 145 )   

    How to disable JetPack nag messages in the WordPress Admin interface 

    I really like WordPress, and I really like JetPack. I use the plugin on many client websites, who usually have their own WordPress.com  account, which is necessary to enable the plugin successfully.

    Most of them however choose not to sign up for a payment plan, which as of 2017 leads to (now rather annoyingly frequent) JetPack upsell messages at the top of the admin screen. So I as the administrator, am constantly exposed to such messages, and I was wondering how to suppress them – not being the target audience here.

    Thanks to a super helpful article by Matt Medeiros I found a great solution with this one-liner of code he as kindly supplied on his website, together with his opinion on such messages:

    /* remove JetPack upsell messages */
    /* https://mattreport.com/disable-jetpack-upsell-ads/ */
    add_filter( 'jetpack_just_in_time_msgs', '_return_false' );

    Add this to your child theme’s functions.php file and those admin nags are history!

    Thanks Matt!

    • radley 4:15 pm on May 21, 2018 Permalink | Reply

      typo in the code: ‘_return_false’ should be ‘__return_false’

      • Jay Versluis 5:45 pm on May 23, 2018 Permalink | Reply

        Ay caramba! Thanks for letting me know 🙂
        It seems to work fine with a single underscore, what’s the difference? I must admit that I’m not familiar with that notation in this context. I’d expect something like just plain “false”.

    • alex 11:52 am on June 21, 2018 Permalink | Reply


      • Jay Versluis 12:31 pm on July 12, 2018 Permalink | Reply

        Thank you, Alex!

  • Jay Versluis 9:58 am on November 21, 2015 Permalink | Reply
    Tags: JetPack,   

    Categories: WordPress ( 145 )   

    How to display Jetpack stats per post in WordPress 

    Some websites employ this or similar technologies to show how many views a single post has had. I was wondering how they did that without starting to count stats that have already been counted for several years, either by Google or by Jetpack.

    Yesterday I came across this post by a WordPress dev named Topher about how to render Jetpack Stats: http://wpgr.org/2013/03/02/rendering-jetpack-stats/

    I decided to test this in TwentyThirteen, and it works a treat – here’s how to do it. The principle will of course work with any theme.

    (More …)

  • Jay Versluis 9:54 am on April 23, 2015 Permalink | Reply
    Tags: JetPack   

    Categories: WordPress ( 145 )   

    What is the Prove your Humanity login feature in WordPress 

    Screen Shot 2015-04-21 at 08.31.32

    Some of my clients have recently noticed a new math question on their WordPress login screen. It prompts to Prove your humanity in addition to your user name and password.

    This feature was recently introduced in Jetpack as part of the Protect Feature, which prevents hackers from trying to gain access to your WordPress site via brute-force attacks. Prove your humanity means that bots have a hard time logging in. You can even see how many times Jetpack has prevented unsuccessful login attempts.

    To remove the math question you can whitelist your own IP so that Jetpack knows you’re logging in from a legitimate address. To do this, login to your admin interface and head over to Jetpack – Settings – find the Protect Feature and hit Configure. This brings up a window similar to the one below.


    You will see your current IP address. Add it to the list and click save – and you won’t see the additional math question again, provided you login from the same IP. Repeat the process and add additional IPs if needed. If you have multiple users on your team who all contribute to the site, ask them to provide their IP via http://whatsmyip.org or similar services.

    If you’ve been accidentally logged out can cannot gain access to WordPress anymore, you can add a single IP address to your wp-config.php file by defining the following constant:

    define('JETPACK_IP_ADDRESS_OK', '');

    Replace with your actual IP address (obviously).

  • Jay Versluis 6:30 pm on May 21, 2014 Permalink | Reply
    Tags: JetPack,   

    Categories: WordPress ( 145 )   

    How to fix JetPack 3.0 Sharing Icons in P2 

    JetPack 3.0 was released yesterday and it had quite a facelift: a new menu structure, dozens of graphical tweaks and a new set of Social Icons for sharing your posts. Those work well out of the box in TwentyThirteen and TwentyFourteen – but not in P2. Here’s how we can fix the problem.

    First let me show you what we’re actually fixing here. In JetPack 2.9.3 and before the social sharing icons at the bottom of a post looked like this:

    Screen Shot 2014-05-21 at 18.04.23

    After you upgrade to JetPack 3.0, and if you’re running P2, then those icons are stacked up like this:

    Screen Shot 2014-05-21 at 18.06.49

    Not what we want, and not how it’s meant to be. What we really want is something like this – new icons, but in the same row as before:

    Screen Shot 2014-05-21 at 18.09.06

    And here’s how we can make this happen – with a hint of CSS:

    /* fix JetPack 3.0 Sharing Icons */
    .sd-content ul li {
        float: left;

    I’ve only noticed this with P2 1.5.3 – but if you’re using a theme that causes the same problem, just add the above to the bottom of your theme’s style.css file, or add it to the “Edit CSS” box (under Appearance).

    It’s not a perfect solution, but certainly a compromise for the interim.

    Hope this helps 😉

    • Jay Versluis 1:14 pm on May 22, 2014 Permalink | Reply

      The Social Icons are meant to be displayed next to the “Share This” text of course – but I didn’t manage to make this happen yet in P2. Any improvements suggestions are welcome of course.

  • Jay Versluis 8:37 am on March 26, 2014 Permalink | Reply
    Tags: JetPack   

    Categories: WordPress ( 145 )   

    How to remove the Jetpack admin menu from subscribers 

    JetPackThe Jetpack admin menu is visible to everybody, including subscribers. This may not be what you want. You may even want to hide it from other admins, perhaps once you’ve given a site over o a client and you don’t want him to switch off vital functionality by accident.

    Here’s how you can hide the Jetpack admin menu in your WordPress back end.

    Hide Jetpack from Non-Admins (including Subscribers)

    If you would like your admin users to see Jetpack and hide it from everyone else, add this to your theme’s function.php file:

    function pinkstone_remove_jetpack() {
    	if( class_exists( 'Jetpack' ) && !current_user_can( 'manage_options' ) ) {
    		remove_menu_page( 'jetpack' );
    add_action( 'admin_init', 'pinkstone_remove_jetpack' );

    Here we test “is Jetpack actually running”, and if it is, “is this user an administrator”. If all signs point to yes then we’ll remove the menu page. You can replace “pinkstone” with another prefix of course.

    Feel free to change the user capabilities to something else if you’d like to make Jetpack visible to authors or editors. You can read more about those options here:

    You can also achieve this functionality by installing a super small plugin courtesy of Jeremy Herve, lead author of Jetpack:

    Hide Jetpack from everybody

    Here we remove the check for capabilities altogether, hiding Jetpack from all users:

    function pinkstone_remove_jetpack() {
    	if( class_exists( 'Jetpack' ) ) {
    		remove_menu_page( 'jetpack' );
    add_action( 'admin_init', 'pinkstone_remove_jetpack' );

    I have included this functionality in my Zen Dash plugin with the latest version 1.4, where you can now hide Jetpack from admins and other users at the flick of a switch (and bring it back just as easily):

    Have fun, and happy hacking 😉

    • Benjamin Viant 12:20 am on July 9, 2016 Permalink | Reply

      Thanks for this! 🙂

    • crazynatey 2:15 pm on December 16, 2017 Permalink | Reply

      Thank you!

    • robertwent 9:03 am on January 3, 2018 Permalink | Reply

      Any idea how to just remove the ‘link to wordpress.com’ section from a users profile page if they’re not an admin?

      • Jay Versluis 11:16 am on January 20, 2018 Permalink | Reply

        Hi Robert, I don’t see that option with the JetPack menu. Are you sure it’s a self-hosted site? If it’s a WordPress.com site, the above fix won’t work (because we can’t patch a functions.php file).

        • Rob 12:23 pm on January 20, 2018 Permalink | Reply

          Yeah, it’s self hosted.

          I hid it with CSS in the end.

          Jetpack adds a link in the user edit screen to link your account to a wordpress account. I think it’s probably just for users with permission to create posts.
          We’re using theme my login to add frontend login and profile pages and I couldn’t find any way to get rid of the jetpack parts.

  • Jay Versluis 7:59 pm on January 2, 2014 Permalink | Reply
    Tags: JetPack, Social Features   

    Categories: WordPress ( 145 )   

    How to share your posts on Google Plus publicly via JetPack 

    g+128I’ve decided to start using Google Plus more in 2014. Thanks to JetPack 2.7 it’s a breeze to publish my posts on Google Plus without having to share them manually.

    What I’ve noticed though was that by default all my posts were appearing as “privately shared” only. As I’d like the widest audience possible I would really like them to be shared publicly. I can do this when I manually post to Google Plus (for example via a Share button, or via the Google Plus app).

    Help is of course at hand – it’s only a matter of setting the permissions correctly that WordPress has over my Google Plus account. Here’s how to change your settings:

    • sign in to your Google Plus account
    • head over to https://plus.google.com/apps
    • under Manage Apps, find WordPress (even if you have multiple websites connected via JetPack, you’ll only see one WordPress “app” connected
    • under “visible to”, click edit and select Public
    • that’s it

    Screen Shot 2014-01-02 at 19.49.11

    Note that this setting changes all your connected websites. So you can’t currently have one website that shares privately, and another that shares publicly. I suppose you could setup two different JetPack / WordPress.com accounts for this to create two separate connections…. but I’m speculating here.

    Thanks to Jeremy from the JetPack team for pointing me in the right direction!

    • Delhi Courses 3:49 am on September 4, 2015 Permalink | Reply

      Thanks for sharing such a nice article. I was wondering this kind of solution to publicize my content on Google plus.


Compose new post
Next post/Next comment
Previous post/Previous comment
Show/Hide comments
Go to top
Go to login
Show/Hide help
shift + esc