beans_replace_action_arguments

Replace an action argument.

This function is a shortcut of beans_replace_action().

beans_replace_action_arguments( string $id, int $args )

Return: (bool) Will always return true.

Parameters

NameTypeRequiredDefaultDescription
$idstringtrue-The action ID.
$argsintfalse-The new number of arguments the function accepts. Use NULL to keep the original value.

Source

function beans_replace_action_arguments( $id, $args ) {

	return beans_replace_action( $id, null, null, null, $args );

}