Home / Admin / Change Add Product button URL
Duplicate Snippet

Embed Snippet on Your Site

Change Add Product button URL

Change Add Product button URL

Code Preview
php
<?php
add_filter( 'wcv_dashboard_quick_links', 'change_add_product_link' );
/**
 * Change the add product link
 *
 * @param array $links The links.
 */
function change_add_product_link( $links ) {
	if ( isset( $links['product'] ) ) {
		$links['product']['url']   = 'https://example.com/add-product/';
		$links['product']['label'] = __( 'Add Product', 'wc-vendors' );
	}
	return $links;
}

Comments

Add a Comment