<?php // don't add this line to your functions.php file, since it's already at the begining. | |
function hsd_limit_tags( $api_url = '', $endput_and_query = '' ) { | |
if ( strpos( $api_url, 'mailboxes' ) !== false ) { | |
if ( strpos( $api_url, 'customers' ) !== false ) { | |
$api_url = add_query_arg( array( 'tag' => 'your-tag-slug' ), $api_url ); | |
} | |
} | |
return $api_url; | |
} | |
add_filter( 'hsd_api_request_api_url', 'hsd_limit_tags', 10, 2 ); |