I think the issue is not related with $request or $params etc. Because this is not working too:
function action_rest_insert_post( $post, $request, $update ) {
update_post_meta($post->ID, 'ib_landing_params', 'test');
}
add_action("rest_insert_post", "action_rest_insert_post", 10, 3);
I tried all ways and gave up lol ??
-
This reply was modified 3 years, 1 month ago by cudjex.