How to strip all visual composer shortcode/tags from wordpress's post_content fetched with custom query
<p>I am working on a web-service(API) where i am fetching result WP_query() function and parse that in JSON format. which will further use in android application.
The problem is the post_content i am getting with query is composed by visual composer and the whole content is in form of such tags like </p>

<pre><code>[VC_ROW][/VC_ROW][VC_COLUMN]some text[/VC_COLUMN] etc.
</code></pre>

<p>I want to remove/strip all these shortcode from the content and retrieve only plain text from it. Is there any visual composer function through which i can achieve this thing</p>

<pre><code>&lt;?php
require('../../../wp-load.php');
require_once(ABSPATH . 'wp-includes/functions.php');
require_once(ABSPATH . 'wp-includes/shortcodes.php');
header('Content-Type: application/json');

$post_name = $_REQUEST['page'];

if($post_name!=''){
    if($post_name=='services') {

    $args = array(
        'post_parent' =&gt; $page['services']['id'],
        'post_type'   =&gt; 'page', 
        'post_status' =&gt; 'published' 
    ); 
    $posts = get_children($args);
    foreach($posts as $po){
        $services_array[] = array('id'=&gt;$po-&gt;ID,'title'=&gt;$po-&gt;post_title,'image'=&gt;get_post_meta($po-&gt;ID, 'webservice_page_image',true),'description'=&gt;preg_replace("~(?:\[/?)[^/\]]+/?\]~s", '', $po-&gt;post_content));
    }

    $post = array(
        'status'=&gt;'ok', 
        'services'=&gt;$services_array
    );
    echo json_encode($post);
}
}
?&gt;
</code></pre>