1. HOT Divi Ultimate Header Plugin - More variety for your Divi header: https://header.diviultimate.com/

Invoke a divi shortcode from an ajax request.

Discussion in 'Free Divi Community Forum' started by aflamerich, Feb 21, 2021.

  1. aflamerich

    aflamerich New Member

    After I received the ajax request, I need to invoke a shortcode in the backend (PHP) as
    function myajaxfunction(){
    /*note here divi shortcode are not available becasue itis an ajax request. Divi was not invoked.
    /* I need to invoked. How I can do it
    do_shortcode('[et_pb_section global_module="'.$id.'"][/et_pb_section]'; //<--this is defined divi shortcode

    The question will be which function or what divi object I need to invoke in order I can use divi's shortcodes in and ajax situation


    1. AD Add tons of new icons for your Divi site. Free version available: https://divi.help/link-forums/divi-icons-pro.147/