Custom Post Types are no longer working with the latest version of BeTheme
We upgraded to Version: 21.1.5 and now we can't save posts of any kind. I think it has to do with the Custom Post Type code in our functions file, but I'm not sure what needs to change. Here is the code we've been using...
Here's the error we're getting when we save...
Fatal error: Uncaught Error: Call to undefined function
mfn_builder_save() in
/home1/mhony/public_html/wp-content/themes/betheme-child/functions/meta-cancerstreatments.php:316
Stack trace:
#0 /home1/mhony/public_html/wp-includes/class-wp-hook.php(288):
mfn_cancerstreatments_save_data(2480)
#1 /home1/mhony/public_html/wp-includes/class-wp-hook.php(310):
WP_Hook->apply_filters(NULL, Array)
#2 /home1/mhony/public_html/wp-includes/plugin.php(465):
WP_Hook->do_action(Array)
#3 /home1/mhony/public_html/wp-includes/post.php(3951):
do_action('save_post', 2480, Object(WP_Post), true)
#4 /home1/mhony/public_html/wp-includes/post.php(4028):
wp_insert_post(Array, false)
#5 /home1/mhony/public_html/wp-admin/includes/post.php(405):
wp_update_post(Array)
#6 /home1/mhony/public_html/wp-admin/post.php(218): edit_post()
#7 {main}
thrown in /home1/mhony/public_html/wp-content/themes/betheme-child/functions/meta-cancerstreatments.php on line 316
Comments
Now, if you will make some changes in your child theme, you don't have to
provide the informations in functions.php which files you changed - now,
it's automatically apply these changes.
To
make your Child Theme work again, you have to find and replace the
'mfn_opts_show()' to 'echo mfn_opts_get()' in files which were modified.
After that, everything should be working fine, we had to make that change because of the new envato rules, more about it here: https://help.author.envato.com/hc/en-us/articles/360000481243#h_674316188621522302914837