beans_replace_action_priority

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

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

}