Warning: call_user_func() expects parameter 1 to be a valid callback
-
Hi,
I’m trying to programatically set an image to have a specific MCM category.
This is the code I’m using:
wp_set_post_terms( $imageID, array(13), 'category_media', true );
It does work, as I can see in the dashboard that the category has been applied, but I get this error:
Warning: call_user_func() expects parameter 1 to be a valid callback, function 'mcm_update_count_callback' not found or invalid function name in wordpress\wp-includes\taxonomy.php on line 3662
any ideas what could be wrong?
https://www.ads-software.com/plugins/wp-media-category-management/
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Warning: call_user_func() expects parameter 1 to be a valid callback’ is closed to new replies.