Enable Revisions within the WordPress Enfold Theme Portfolio Post Types
By default, the Portfolio Items post type does not have “revisions” enabled from within the Enfold WordPress theme. If this feature is desired, it must be enabled manually by applying the following code to your child theme’s “functions.php
” file.
Enable WordPress Revisions
Please note, this may only apply to future “Portfolio Items” posts. All prior portfolio posts would have to either be re-saved or copied over to a new post.
add_filter( 'avf_portfolio_cpt_args', 'avia_add_portfolio_revision', 10, 1 );
function avia_add_portfolio_revision( $args )
{
$args['supports'] = array('title','thumbnail','excerpt','editor','comments','revisions');
return $args;
}
If this article was helpful please take a moment to like us on Facebook, share this on your social media or buy us a cup of coffee.