Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hide social previews if not premium #70

Merged
merged 7 commits into from
Jun 21, 2021

Commits on Jun 21, 2021

  1. adds a quick check if Yoast Premium is active

    this can be used by a bunch of things to enable/disable features
    jazzsequence committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    052156c View commit details
    Browse the repository at this point in the history
  2. bail early if yoast premium is active

    premium overrides free version.
    jazzsequence committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    a55a7c9 View commit details
    Browse the repository at this point in the history
  3. we don't actually need to spoof yoast premium

    in fact it leads to problems with labelling & makes things appear that Premium is active when it's actually not
    jazzsequence committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    d6eeb83 View commit details
    Browse the repository at this point in the history
  4. hide the social tab if Yoast Premium is not active

    prevents the social tab from displaying in the yoast metabox if Yoast Premium is inactive
    jazzsequence committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    68c8627 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    61db5f9 View commit details
    Browse the repository at this point in the history
  6. ignore phpcs rule about escaping output

    we're hard-coding what's going into the echo here with no possibility of outside insertions.
    jazzsequence committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    1d4bbf7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    74e6370 View commit details
    Browse the repository at this point in the history