beans_modify_action_priority

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

NameTypeRequiredDefaultDescription
$idstringtrue-The action ID.
$priorityintfalse-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 );

}