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