diff --git a/inc/admin.php b/inc/admin.php index 3a562b0..f6084dc 100644 --- a/inc/admin.php +++ b/inc/admin.php @@ -303,8 +303,20 @@ function youtube_live_debugging_render() { if ( ! array_key_exists( 'debugging', $options ) ) { $options['debugging'] = false; } + + /** + * Filters the capability required to see debug output. + * + * @since 1.10.0 + * + * @var string $capability The capability required. + * + * @return string + */ + $capability = apply_filters( 'wp_youtube_live_debug_user_capability', 'manage_options' ); + ?> - Show debugging information in an HTML comment for logged-in users? + Show debugging information in an HTML comment for logged-in users with the capability?