// Alter the day output
function myprefix_vcex_recent_news_day_output() {
return get_the_time( 'j', get_the_ID() );
}
add_filter( 'vcex_recent_news_day_output', 'myprefix_vcex_recent_news_day_output' );
// Alter the month & year output
function myprefix_vcex_recent_news_month_year_output() {
$month_year = '<span>'. get_the_time( 'M', get_the_ID() ) .'</span>';
$month_year .= ' <span class="year">'. get_the_time( 'y', get_the_ID() ) .'</span>';
return $month_year;
}
add_filter( 'vcex_recent_news_month_year_output', 'myprefix_vcex_recent_news_month_year_output' );
Snippets: Alter Visual Composer Recent News Module Day & Month/Year Outputs
All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)