Mike van den Hoek

Results 12 comments of Mike van den Hoek

I've solved this with the following code: ``` // add_action('rest_insert_{post_type}', 'onInsertItem', 10, 3); add_action('rest_insert_page', 'onInsertItem', 10, 3); /** * On subsites the featured_media must be set manually * * @param...

Make sure the fill in the correct post-type in `add_action('rest_insert_{post_type}', 'onInsertItem', 10, 3);`. If so on which location did you placed this code?

Try placing this code in your functions.php inside your theme folder.

Can you show the code that you currently have and for which post-type do you want to add this?

Alright, can you first check if setting a featured image for a page is working correctly? Secondly; `add_action('rest_insert_{property}', 'onInsertItem', 10, 3);` should be `add_action('rest_insert_property', 'onInsertItem', 10, 3);`

@johnbillion any update on this?

I've found a Javascript error in de console log. themosis.core.js?ver=2.0.5:formatted:43692 TypeError: Cannot read property 'data' of undefined at themosis.core.js?ver=2.0.5:formatted:43687

@jlambe no problem, thanks for checking!

@jlambe is there an update by any chance?

Since there is no reaction yet I'll code the metaboxes in the Wordpress way myself.