beans_modify_action_callback

Modify an action callback.

This function is a shortcut of beans_modify_action().

beans_modify_action_callback( string $id, string $callback )

Return: (bool) Will always return true.

Parameters

NameTypeRequiredDefaultDescription
$idstringtrue-The action ID.
$callbackstringfalse-The name of the new function you wish to be called. Use NULL to keep the original value.

Source

function beans_modify_action_callback( $id, $callback ) {

	return beans_modify_action( $id, null, $callback );

}