Replace an action hook.
This function is a shortcut of beans_replace_action().
beans_replace_action_hook( string $id, string $hook )
Return: (bool) Will always return true.
Parameters
Name | Type | Required | Default | Description |
---|---|---|---|---|
$id | string | true | - | The action ID. |
$hook | string | false | - | The name of the new action to which the $callback is hooked. Use NULL to keep the original value. |
Source
function beans_replace_action_hook( $id, $hook ) {
return beans_replace_action( $id, $hook );
}