wordpress - include function in php -
is correct or not because show error when im done
if(is_page('payment-success')) { include("/wp-content/ga-ecommerce-tracking/ga-ecommerce-tracking.php"); }
include accepts absolute path, relative path or url stream argument. using wrong absolute path here. try making relative path ( assuming editing file in wordpress root directory, if not change path accordingly)
if(is_page('payment-success')) { include("./wp-content/ga-ecommerce-tracking/ga-ecommerce-tracking.php"); }
Comments
Post a Comment