Docs: Further synchronize documentation for some Plugin API functions.

Follow-up to [50807].

See #50531.

git-svn-id: https://develop.svn.wordpress.org/trunk@50811 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2021-05-04 15:00:33 +00:00
parent 6a5ff5aa03
commit 9aa08906e2
2 changed files with 9 additions and 7 deletions

View File

@@ -279,7 +279,8 @@ function has_filter( $hook_name, $callback = false ) {
*
* @param string $hook_name The filter hook to which the function to be removed is hooked.
* @param callable $callback The name of the function which should be removed.
* @param int $priority Optional. The priority of the function. Default 10.
* @param int $priority Optional. The exact priority used when adding the original
* filter callback. Default 10.
* @return bool Whether the function existed before it was removed.
*/
function remove_filter( $hook_name, $callback, $priority = 10 ) {
@@ -553,7 +554,8 @@ function has_action( $hook_name, $callback = false ) {
*
* @param string $hook_name The action hook to which the function to be removed is hooked.
* @param callable $callback The name of the function which should be removed.
* @param int $priority Optional. The priority of the function. Default 10.
* @param int $priority Optional. The exact priority used when adding the original
* action callback. Default 10.
* @return bool Whether the function is removed.
*/
function remove_action( $hook_name, $callback, $priority = 10 ) {