Skip to content

Snippet: Modify the Portfolio Grid Filter Term Links Arguments

/**
 * Tweak the portfolio grid filter arguments.
 *
 * @link https://codex.wordpress.org/Function_Reference/get_terms
 */
add_filter( 'vcex_portfolio_grid_filter_args', function( $args ) {
    $args['order'] = 'DESC';
    return $args;
} );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top