- This topic has 2 replies, 2 voices, and was last updated 9 years, 8 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Affiliates Management Plugin for WordPress
by
WordPress Affiliate Manager › Forums › Affiliate Manager Plugin › hooks outside wp
I have a system outside wp and I am trying to setup hooks outside wp.
The code
$args = array();
$args[‘txn_id’] = ‘4JX55705JA6177943’;//TODO
$args[‘amount’] = ‘49.95’;//TODO
$args[‘aff_id’] = ‘1’;//TODO
do_action(‘wpam_process_affiliate_commission’, $args);
does not work unless I know what wpam_process_aff… do.
Any tips on how to integrate outside wp?
Also the custom landing page url works but it tracks via client side and does not update the counter. Any way I can setup a hook to update the counter so it does not confuse the affliates? Easy way is to create a function that simply updates, but don’t know if there is a better way.
Great work guys. Hopefully I can use it and then purchase the pro version.
Thiago
I figured it out but if you set the default landing page outside the blog, it won’t create a cookie. I have to create it myself. Can someone confirm?
Hi, I believe you will need to manually create the cookie since it’s outside the WordPress install.