• Resolved itsnotyouitsme

    (@itsnotyouitsme)


    I’m trying to display the wedocs shortcode as a dashboard widget in the backend. do_shortcode(‘[wedocs]’) is not working, so is it possible to display the data by directly running the associated functions? Can you provide the code? Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Author Tareq Hasan

    (@tareq1988)

    Shortcodes are for frontend only. But you could try like this:

    
    if ( ! class_exists( 'WeDocs_Shortcode_Handler') ) {
        require_once WP_CONTENT_DIR . '/plugins/wedocs/includes/class-shortcode.php';
    }
    
    WeDocs_Shortcode_Handler::wedocs();
    

    You won’t have any CSS styles though, you’ve to manage your own.

Viewing 1 replies (of 1 total)
  • The topic ‘Displaying the shortcode wedocs in backend’ is closed to new replies.