-
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:
12345function my_enable_portfolio_revisions( $supports ){$supports[] = 'revisions';return $supports;}add_filter( 'ish_cpt_plugin_portfolio_post_type_supports', 'my_enable_portfolio_revisions' );Now, how is the code for the HOME site, that I have to put in the funkctions.php.
greetings
snowbird12Sorry, 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.
-
Support time:
Usually 4-8 hrs / might get up to 48 hrsSupport Us
If you are satisfied with our themes & support you can motivate us even more by supporting us (via Paypal).
Themes Support
- General 42
- Qusq Lite 9
- Qusq Pro 110
- Qusq HTML 12
- Ofis WP 0
- Hedy WP 27
- Wildster WP 41
- Tayp WP 44
- TinyShop WP 27
- Freelo WP 80
- Inverto WP 86
- Kreo WP 102
- Kopy WP 207
- Multicorp WP 194
- NO8 WP 266
- Leepho WP 46
- Boldial WP 1,119
- Minicorp WP 470
- Nalleto WP 152
- Zimney WP 10
- Creolio WP 76
Our Themes