if (isset($_POST['text'])) {
            $text = $_POST['text'];
        }
        // Only build the pattern with a subset of shortcodes.
        if (isset($_POST['params']) && isset($_POST['params']['allowed'])) {
            $allowed = explode(',', $_POST['params']['allowed']);
        }
        // Build the shortcode pattern to check if the text that we want to check uses any of the builder shortcodes.
        ac_shortcode_pattern($allowed);
        $text = do_shortcode_builder($text);
        if (isset($_POST['text'])) {
            echo $text;
            die;
        } else {
            return $text;
        }
    }
    /**
     * Triggered when clicking the rating footer.
     */
    public static function rated()
    {
        if (!current_user_can('manage_axiscomposer')) {
            die(-1);
        }
        update_option('axiscomposer_admin_footer_text_rated', 1);
        die;
    }
}
AC_AJAX::init();