add_action('manage_users_columns','yoursite_manage_users_columns'); function yoursite_manage_users_columns($column_headers) { unset($column_headers['posts']); $column_headers['custom_posts'] = 'Assets'; return $column_headers; } add_action('manage_users_custom_column','yoursite_manage_users_custom_column',10,3); function yoursite_manage_users_custom_column($custom_column,$column_name,$user_id) {…
Render Replace Vars in the ID Field in WPBakery in the Total Theme like „{{category}}“
//ENABLE ID FIELD RENDER SHORTCODE
add_filter( 'shortcode_atts_vc_row', function( $atts ) {
if ( class_exists( 'TotalTheme\Replace_Vars' ) ) {
foreach ( $atts as $k => $v ) {
if ( in_array( $k, [ 'local_scroll_id', 'el_id' ] ) ) {
$atts[ $k ] = (new TotalTheme\Replace_Vars())->replace( $v );
}
}
}
return $atts;
} );
Dieser Beitrag hat 0 Kommentare