Created
March 29, 2024 15:58
-
-
Save LaxusCroco/de1754e484fe36d22a957e9d13e51aca to your computer and use it in GitHub Desktop.
Replace 'manage_options' with the needed capability
This file contains hidden or 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 | |
| add_filter( 'jet-popup/access-cap', 'my_custom_admin_ui_cap', 10 ); | |
| function my_custom_admin_ui_cap( $capability ) { | |
| // Return your custom capability | |
| return 'manage_options'; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment