Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Doc block for ep_capability and ep_network_capability filters #3685

Merged
merged 2 commits into from
Oct 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions includes/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ function get_capability() : string {
*
* @since 4.5.0
* @hook ep_capability
* @param {bool} $capability Capability name. Defaults to `'elasticpress_manage'`
* @return {bool} New capability value
* @param {string} $capability Capability name. Defaults to `'manage_elasticpress'`
* @return {string} New capability value
*/
return apply_filters( 'ep_capability', 'manage_elasticpress' );
}
Expand All @@ -81,8 +81,8 @@ function get_network_capability() : string {
*
* @since 4.5.0
* @hook ep_network_capability
* @param {bool} $capability Capability name. Defaults to `'manage_network_elasticpress'`
* @return {bool} New capability value
* @param {string} $capability Capability name. Defaults to `'manage_network_elasticpress'`
* @return {string} New capability value
*/
return apply_filters( 'ep_network_capability', 'manage_network_elasticpress' );
}
Expand Down