• Resolved GreenTreeLabs

    (@greentreelabs)


    I need to make changes into the text widgets from PHP, is there something like the parse_blocks() function of Gutenberg?

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

    (@greentreelabs)

    I see there’s a clean and clear json structure in the _elementor_data meta, cool! What’s the name of the function to transform the json to HTML?

    Thread Starter GreenTreeLabs

    (@greentreelabs)

    Ok I think I was able to do that:

    $document = Elementor\Plugin::$instance->documents->get($post_id);
    $html = $document->get_content(true);

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to parse widgets’ is closed to new replies.