Working on itYuzo code in REST API json

  • Author
    Posts
  • Snah Nedllav
    Participant

    Hi,

    is it possible to prevent Yuzo code from being embedded to the REST API json?

    For example: https://keventajat.fi/wp-json/wp/v2/posts?category=1,7,9,2219&kiloklubi=4339

    #4816
    Snah Nedllav
    Participant

    To be more specific, from being embedded to the rendered content property

    #4817
    iLen
    Keymaster

    Hello, what you need is that the REST API does not send the Yuzo code html related posts, right?

    #4827
    Snah Nedllav
    Participant

    The content.rendered object contains Yuzo code starting with <!– Begin Yuzo Pro –>. I’m not sure if it should even be there by definition, but yes, I need to get rid of it. We use the REST API to publish the content in external sites and the path links in the Yuzo code are causing errors.

    #4831
    iLen
    Keymaster

    I just removed those lines, please try this version
    https://filenurse.com/download/a2423a05ae3fd0ca165c7957f34d9870.html

    I await your response

    #4833
    Snah Nedllav
    Participant

    The comment is now gone but the <div class=’yuzo_pro’> element remains. 🙂

    #4836
    iLen
    Keymaster

    It appears all the html of Yuzo, then it is not the solution to remove the messages of initiation of the html of the plugin,
    I think that Yuzo should not run when it is called by REST API if the user wishes, I will investigate this type of validations so that Yuzo does not run.

    #4839
Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.