Modify an action callback.
This function is a shortcut of beans_modify_action().
beans_modify_action_callback( string $id, string $callback )
Return: (bool) Will always return true.
Parameters
Name | Type | Required | Default | Description |
---|---|---|---|---|
$id | string | true | - | The action ID. |
$callback | string | false | - | The name of the new function you wish to be called. Use NULL to keep the original value. |
Source
function beans_modify_action_callback( $id, $callback ) {
return beans_modify_action( $id, null, $callback );
}