The function create_function() is deprecated in PHP 7.2. Please change line 34 of pubexchange_widget.php
From
if($this->settings->pubexchange_publication_id){
//register PubExchange widget
add_action('widgets_init', create_function('', 'return register_widget("WP_Widget_PubExchange");'));
}
To
if($this->settings->pubexchange_publication_id){
//register PubExchange widget
add_action('widgets_init', function() {register_widget("WP_Widget_PubExchange");});
}
]]>
The PubExchange footer JS conflicts with Amazon carousel ads. This can be resolved by loading the PubExchange JS in the header instead of the footer.
Please refer to:
add_action('wp_head', array(&$this, 'pubexchange_footer_load_js'), 99);
In the next plugin release can you please provide an admin settings option to load the PubExchange Footer JS in the header.
Also, can you add a load priority option to the filter that appends the widget to the_content(). Currently I have edited the plugin code to force a priority of 99. An admin option for this will be useful.
Please refer to:
add_filter('the_content', array(&$this, 'load_pubexchange_content'), 99);
Thank you.
]]>