Skip to content

Commit

Permalink
Merge pull request #3685 from 10up/fix/doc-block
Browse files Browse the repository at this point in the history
Fix: Doc block for ep_capability and ep_network_capability filters
  • Loading branch information
felipeelia committed Oct 6, 2023
2 parents 438dbeb + b72cf40 commit fcd7608
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit fcd7608

Please sign in to comment.