mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 11:44:33 +00:00
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:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user