Support » Plugin: Jetpack by WordPress.com » Can’t filter jetpack_publicize_capability

  • John Hawkins

    (@vegasgeek)



    I’m trying to add the publicize capabilities to authors on a site. I have a function built that looks like this:

    function pf_publicize_capability() {
        return 'edit_posts';
    }
    add_filter( 'jetpack_publicize_capability', 'pf_publicize_capability' );

    When I try to connect my author level user account to wordpress.org, it fails and provides the following message:

    Jetpack: [scope] current_user_cannot

    Any suggestions would be appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ryan Cowles

    (@ryancowles)

    Happiness Engineer

    Hey John, thanks for the report. Your example above seems correct to me, so I’m not entirely sure why it would be failing.

    Could you let me know how you’re adding the above snippet to your site? And could you provide me with a link to the site in question?

    If you want it to remain private, you can contact us using the form here:
    Contact Support

    Please make sure to include a link to this thread in your message. Thanks!

    Hey Ryan,

    So, weird thing… A couple days went past and I ended up deactivating Jetpack entirely and then reactivating it. I can’t say for sure that’s what triggered it. Maybe it was related to some caching, too. I’m not sure. But, I was able to get past the issue above. Thanks for taking a look!

    Plugin Contributor Ryan Cowles

    (@ryancowles)

    Happiness Engineer

    Hm… that’s interesting. Glad I was able to help 😀 Please do give a shout if you experience any further trouble – I’d be happy to look into it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can’t filter jetpack_publicize_capability’ is closed to new replies.