jeudi 7 janvier 2016

basic wordpress plugin throws SyntaxError: Unexpected token

Here is the basic wordpress plugin that hooks to woocommerce action tag. I try to understand the concept. But I get the error when I try to checkout on the page.

add_action( 'wc_order_statuses', 'wpwoopush_test');
function wpwoopush_test() {
    wp_mail($email,$titile,$text);
    return true;
}

Error:

<div class="woocommerce-error">SyntaxError: Unexpected token &lt;</div>



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire