beans_replace_action_hook

Replace an action hook.

This function is a shortcut of beans_replace_action().

beans_replace_action_hook( string $id, string $hook )

Return: (bool) Will always return true.

Parameters

NameTypeRequiredDefaultDescription
$idstringtrue-The action ID.
$hookstringfalse-The name of the new action to which the $callback is hooked. Use NULL to keep the original value.

Source

function beans_replace_action_hook( $id, $hook ) {

	return beans_replace_action( $id, $hook );

}