apply_filters ( 'jetpack_publicize_capability', string $capability )

Filter what user capability is required to use the publicize form on the edit post page. Useful if publish post capability has been removed from role.

Source file: modules/publicize/publicize.php

View in GitHub



(string) User capability needed to use publicize


Since: Jetpack 4.1.0


You can use that filter to change required capability to access Publicize options. In the example below, we’ll change the capability to edit_posts:

function jeherve_publicize_capability() {
    return 'edit_posts';
add_filter( 'jetpack_publicize_capability', 'jeherve_publicize_capability' );

Have a note to contribute?

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s