Skip to content

Instantly share code, notes, and snippets.

@mono96
Created February 15, 2021 06:38
Show Gist options
  • Save mono96/80f9d630dadd1c45103b5ebaa4b8556f to your computer and use it in GitHub Desktop.
Save mono96/80f9d630dadd1c45103b5ebaa4b8556f to your computer and use it in GitHub Desktop.
jp4wc_tracking_urlフック
function my_carrier_tracking_data(){
$my_carrier_tracking_url_data = array(
'hoge' => array(
'title' => __( 'hoge', 'jp4wc-pro' ),
'url' => 'https://example.com/hoge/',
),
'hogehoge' => array(
'title' => __( 'hogehoge', 'jp4wc-pro' ),
'url' => 'https://example.com/hoge/',
),
);
return $my_carrier_tracking_url_data;
}
add_filter( 'jp4wc_tracking_url', 'my_carrier_tracking_data');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment