Closed mweimerskirch closed 9 years ago
Do we have to support 5.3? The official WordPress requirements say 5.4: https://wordpress.org/about/requirements/
Do we have to support 5.3?
I would try to not to be fancy, because I would assume that there are many servers in the world, which are still behind ...
I'm just not used to write code for 2009 anymore ;-) But yes, you're right :-(
Sorry, my client has other scripts and websites on the same plateform...
Is it the correct code for 5.2?
add_action( 'save_post', 'qwc_my_function', 10, 3); function qwc_my_function($post_id, $post, $update) { if ( 'shop_order' != $post->post_type || $update /* ignore updates */ ) { return; } global $q_config; add_post_meta( $post_id, '_user_language', $q_config['language'], true ); };
Made code compatible with PHP 5.3 -.- Fixes #3