• Resolved sonstiges

    (@sonstiges)


    Dear support-team,

    I created a plugin. It loads the content of PHP-snippets into the posts of WP. In the editor you use [php snippet=1 param="parameterA=1&parameterB=2"] and code will be loaded there on the frontend. The content of this snippets is stored in the DB but will not be executed in the editor when you edit a post.
    Now I want to get the content be analysed by Yoast. I found your yoast.js on Github and NPM but I don´t get it. I installed and extracted the package from NPM and read the guide. I understood nothing.
    I also already found a way to load JS- and PHP-files in my plugin when a post is open for edition. I also know how to execute the snippet and put the content of it in variables in JS or PHP, whatever is needed. But I don´t understand how to give the content to YOAST to analyse (perhaps in real-time?).
    Can you explain to me how to do this? Or is there some kind of guide or tutorials for absolute beginners like me? i found nothing.

    MY QUESTION:
    1. How can I get the content of a variable analysed as content of the post?
    2. or how can I edit the content of the post, which will be analysed?
    3. I could put the content of the snippets into the content of the post by find and replace in PHP. Is this possible to do before it goes to the analysis?

    Thanks for your help!

    • This topic was modified 6 years, 10 months ago by sonstiges.
    • This topic was modified 6 years, 10 months ago by sonstiges.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sonstiges

    (@sonstiges)

    No answer? That´s sad. I thought you would support compatible plugins.
    I really need help.

    • This reply was modified 6 years, 10 months ago by sonstiges.
    Thread Starter sonstiges

    (@sonstiges)

    Nevermind. I changed your plugin to execute the snippets before analysing. Thank you for your not-help.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘a guide for plugin developer?’ is closed to new replies.