filter

jetpack_publicize_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.

Parameters

$capability
string

User capability needed to use publicize

Changelog

How to use this hook

See “How to use actions and filters to customize Jetpack”.

Notes

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' );