How to enable revisions for my homepage?

  • Resolved
    Posted in: Kreo WP  

  • Member
    trottinett
    January 15, 2016 at 12:55 pm #11223

    Hi ishoboy,

    I think this will be one of my last questions and the my website will be finish.
    I need the code for also enable revision for my HOME site.
    You wrote one month before:

    Ahaaaaa! The revisions are not enabled by default on Portfolio CPT. Please see this topic. This will surely enable them: https://support.ishyoboy.com/forums/topic/how-to-enable-revisions-on-portfolio-posts/

    The revisions are not enabled for CPTs by default. To enable them you need to manually set this when registering the Custom Post Type (“Portfolio” in this case).

    When we register it we use this filter:
    $supports = apply_filters( 'ish_cpt_plugin_portfolio_post_type_supports', array('title', 'editor', 'thumbnail', 'comments' ) );

    So just use the WordPress’s add_filter function to add a filter to the hook “ish_cpt_plugin_portfolio_post_type_supports” in your child theme and in it add the “revisions” into the end of input array. Something like:

    Now, how is the code for the HOME site, that I have to put in the funkctions.php.

    greetings
    snowbird12

    Sorry, this forum is for verified users only. Please Login / Register to continue
    or get 6 months support forum access to all forum topics for a reduced price.

Comments are closed.