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

  1. dmahler
    Posted 2 years 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?


  2. michael_greenberg
    Plugin Author

    Posted 2 years ago #

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

  3. dmahler
    Posted 2 years ago #

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

  4. dmahler
    Posted 2 years ago #

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

  5. crimelovingfunster
    Posted 2 years 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,

  6. michael_greenberg
    Plugin Author

    Posted 2 years 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • PHPEnkoder
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic