Title: AMP compatibility
Last modified: January 31, 2019

---

# AMP compatibility

 *  [vralle](https://wordpress.org/support/users/vit-1/)
 * (@vit-1)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/amp-compatibility-5/)
 * Hi! The plugin is doing a great job.
 * But the code for regular pages is not compatible with AMP.
 * Not sure whether the public code of the plugin is compatible with the AMP. Most
   likely, you can disable the effect of the plugin on the public code.
 * The code below does not work
 *     ```
       // wpBruiser - Not Work:
       add_action(
           'wp',
           function () {
               if (function_exists('is_amp_endpoint') && is_amp_endpoint()) {
                   global $GoodByeCaptchaPublic;
                   remove_action('wp_print_scripts', array($GoodByeCaptchaPublic, 'renderPublicScript'), 0);
                   remove_action('wp_print_footer_scripts', array($GoodByeCaptchaPublic, 'renderPublicScript'), 0);
               }
           }
       );
       ```
   
 * And more to disable:
    GdbcWordPressPublicModule.php:
 *     ```
       private function activateCommentsHooks()
       	{
   
       		$this->addActionHook('comment_form_top', array($this, 'renderTokenFieldIntoCommentsForm'));
       		$this->addActionHook('comment_form'    , array($this, 'renderTokenFieldIntoCommentsForm'));
       // ...
       }
       ```
   
 * any ideas?
    -  This topic was modified 7 years, 3 months ago by [vralle](https://wordpress.org/support/users/vit-1/).
    -  This topic was modified 7 years, 3 months ago by [vralle](https://wordpress.org/support/users/vit-1/).
    -  This topic was modified 7 years, 3 months ago by [vralle](https://wordpress.org/support/users/vit-1/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Famp-compatibility-5%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘AMP compatibility’ is closed to new replies.

 * ![](https://ps.w.org/goodbye-captcha/assets/icon-256x256.png?rev=1356325)
 * [WPBruiser {no- Captcha anti-Spam}](https://wordpress.org/plugins/goodbye-captcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/goodbye-captcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/goodbye-captcha/)
 * [Active Topics](https://wordpress.org/support/plugin/goodbye-captcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/goodbye-captcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/goodbye-captcha/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [vralle](https://wordpress.org/support/users/vit-1/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/amp-compatibility-5/)
 * Status: not resolved