Support » Plugin: AMP » enable or disable amp page foe any post by api

  • Resolved policebet


    i publish my posts in site automatic.
    AMP is enable for every posts by default and cand disable in for any posts in edit post panel.
    is there any api ( a function ) for enable or disable AMP page for posts?

    • This topic was modified 2 months, 2 weeks ago by policebet.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support James Osborne


    @policebet If you want to change AMP to opt in as opposed to the default opt out you can add the below to your themes functions.php:
    add_filter( 'amp_post_status_default_enabled', '__return_false' );

    You can also see this post if you want to disable AMP on specific categories.


Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.