WordPress at Your Fingertips
function is not described

WC_Query::remove_add_to_cart_pagination() public WC 1.0

Remove the add-to-cart param from pagination urls.

{} It's a method of the class: WC_Query{}

No Hooks.

Return

String.

Usage

$WC_Query = new WC_Query();
$WC_Query->remove_add_to_cart_pagination( $url );
$url(string) (required)
URL.

Code of WC_Query::remove_add_to_cart_pagination() WC 5.7.1

public function remove_add_to_cart_pagination( $url ) {
	return remove_query_arg( 'add-to-cart', $url );
}