Source file: modules/publicize/publicize.php
View in GitHubParameters
- $capability
-
(string) User capability needed to use publicize
Changelog
Since: Jetpack 4.1.0
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' );