We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe4b048 commit fc63dbaCopy full SHA for fc63dba
1 file changed
src/inc/settings.php
@@ -524,10 +524,18 @@ function ableplayer_settings_form() {
524
* Add Able Player menu items to main admin menu
525
*/
526
function ableplayer_menu() {
527
+ /**
528
+ * Filter the capability required to manage Able Player settings.
529
+ *
530
+ * @hook ableplayer_capability
531
532
+ * @param {string} $capability The capability string required.
533
+ */
534
+ $capability = apply_filters( 'ableplayer_capability', 'manage_options' );
535
add_options_page(
536
__( 'Able Player', 'ableplayer' ),
537
- apply_filters( 'ableplayer_capability', 'manage_options' ),
538
+ $capability,
539
'ableplayer',
540
'ableplayer_settings_form'
541
);
0 commit comments