Skip to content

Allow AMP to be disabled by default for individual Posts #837

@d4mation

Description

@d4mation

#813 allowed AMP to be disabled Per-Post which is excellent, but it seems that there's no reliable way to invert the assumption that all Posts for each enabled Post Type should load AMP by default.

The way the Post Meta currently works only stores data if AMP is disabled, so attempting to Filter that output using the get_{$meta_type}_metadata Filter would not be reliable as you cannot differentiate between a Post that has not been edited since the AMP plugin was activated and a Post that has AMP enabled (As not checking "Disabled" just deletes the Post Meta, which for all intents and purposes looks the same as a Post that has not been edited since enabling the plugin).

The amp_skip_post Filter exists, but without knowing whether the Post has AMP intentionally enabled for the Post or not it is not much help here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions