WordPress.org

Ready to get started?Download WordPress

Forums

PHPEnkoder
[resolved] Excluding it from WooCommerce pages? (6 posts)

  1. dmahler
    Member
    Posted 9 months ago #

    I love you plugin and use it all the time on my clients sites.

    Ran into an issue recently with one client and WooCommerce.

    When the PHPEnkoder plugin is enabled, it creates a Javascript error on the WooCommerce checkout page where it inserts the email address (email address input) for the full billing information form.

    Is there a way to disable the plugin just on that page specifically?

    http://wordpress.org/plugins/php-enkoder/

  2. michael_greenberg
    Member
    Plugin Author

    Posted 8 months ago #

    To disable PHPEnkoder for the entirety of a page, you should call enkoder_unregister_filters().

  3. dmahler
    Member
    Posted 7 months ago #

    Thanks Michael. Where do I put that? Do I add it to the individual page itself as in:

    <?
    enkoder_unregister_filters()
    ?>
  4. dmahler
    Member
    Posted 7 months ago #

    Cancel that request. Got it to work!
    Thank you!

  5. crimelovingfunster
    Member
    Posted 6 months ago #

    Every time a developer kindly provides a piece of code there's the question of "where do you put it?" Where do you put it? where do you put the code?
    I'm clearly totally failing to grasp a basic fundamental concept of WordPress. Can you help me out here? :-S
    Many thanks,
    Hugh

  6. michael_greenberg
    Member
    Plugin Author

    Posted 6 months ago #

    Where you put the code depends on where the code is/what it does. There is no easy answer.

    WordPress pages are driven by requests to URLs that land on its PHP files. To disable PHPEnkoder from running on a page, you need to take that page's URL and figure out which PHP file it's actually using. Then you need to enkoder_unregister_filters in some of that file's code, early on.

    Without more details, I can't tell which file you need to edit.

Reply

You must log in to post.

About this Plugin

About this Topic