Fatal error: Uncaught Error: Call to undefined function update_metadata() in /home/alycastel/public_html/wp-includes/post.php:2258 Stack trace: #0 /home/alycastel/public_html/wp-content/plugins/visual-portfolio/classes/class-custom-post-meta.php(294): update_post_meta() #1 /home/alycastel/public_html/wp-includes/class-wp-hook.php(292): Visual_Portfolio_Custom_Post_Meta::update_views_count() #2 /home/alycastel/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters() #3 /home/alycastel/public_html/wp-includes/plugin.php(484): WP_Hook->do_action() #4 /home/alycastel/public_html/wp-includes/general-template.php(3009): do_action() #5 /home/alycastel/public_html/wp-content/themes/Divi/header.php(27): wp_head() #6 /home/alycastel/public_html/wp-includes/template.php(730): require_once('/home/alycastel...') #7 /home/alycastel/public_html/wp-includes/template.php(676): load_template() #8 /home/alycastel/public_html/wp-includes/general-template.php(48): locate_template() #9 /home/alycastel/public_html/wp-content/the in /home/alycastel/public_html/wp-includes/post.php on line 2258