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
- Introduced in Jetpack 0.1.0
How to use this hook
Notes
You can use that filter to change required capability to access Publicize options. In the example below, we’ll change the capability toedit_posts
:
function jeherve_publicize_capability() { return 'edit_posts'; } add_filter( 'jetpack_publicize_capability', 'jeherve_publicize_capability' );