hooks - Compare Affiliated Products

In order to help developpers to make Compare Affiliated Products their own, I put some hooks, action and filter in the code.


If I’ve forgotten ou you need an Hook somewhere, please contact me here


  • This hook fire in the AAWP Template to show the affiliated product <code><code>do_action( 'thfo_compare_after_price', $this );


  • Allow you to filter the partners logo 
    apply_filters( 'compare_partner_name', $p['partner_name'] )<br>
  • Allow you to customize the currency unit or replace the letter code by the symbol
    apply_filters( 'compare_currency_unit', $currency );<br>
  • Allow you to add settings tabs
    apply_filters( 'compare_settings_tab', $tabs );<br>
  • Allow you to increase PHP limit time in import and register infos. 
    apply_filters('compare_time_limit', 600);<br>
  • Allow you to customize logo & partner code before displaying apply_filters( 'compare_partners_code', array( 'Cdiscount'=> '6948', 'Toy\'R us' => '7108', 'Oxybul eveil et jeux' => '7103','Rue du Commerce' => '6901') );
  • Allow customizing the expression to track the URL. by default: the website URL apply_filters( 'compare_url_tracker', get_bloginfo('url') );
  • Enqueue your own CSS file add_filter('cap_enqueue_css', $css );
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us