-
-
Save pixelbart/583e28d15dabd661d7a700a689ed6b0c to your computer and use it in GitHub Desktop.
Updates the capability of a Helpful Plugin menu.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // functions.php | |
add_action( 'init', function() { | |
if ( ! class_exists( 'Helpful\Core\Helper' ) ) { | |
return; | |
} | |
Helpful\Core\Helper::set_capability( 'helpful_capability', 'edit_posts' ); | |
Helpful\Core\Helper::set_capability( 'helpful_settings_capability', 'edit_posts' ); | |
Helpful\Core\Helper::set_capability( 'helpful_feedback_capability', 'edit_posts' ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment