Modify an action priority.
This function is a shortcut of beans_modify_action().
beans_modify_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_modify_action_priority( $id, $callback ) {
return beans_modify_action( $id, null, null, $callback );
}