Dashboard : remove Safari navigator message

According to that page: http://wpcodesnippet.com/hide-browser-upgrade-warning-wordpress/ You can put this code into your functions.php to get rid of that notices: // hide browser upgrade warning in wordpress function wcs_disable_browser_upgrade_warning() { remove_meta_box( ‘dashboard_browser_nag’, ‘dashboard’, ‘normal’ ); } add_action( ‘wp_dashboard_setup’, ‘wcs_disable_browser_upgrade_warning’ ); I would tell your client the risks that might be comming with this – just to … Read more

How to check if it’s edit.php & post_type is set?

Post type is reflected in body as class. It is .post-type-post for posts, .post-type-product for WooCommerce products and must be .post-type-food in your case. So, you can use css rule like that to detect certain post type: body.post-type-food #titlediv input { background: yellow !important; } Post status is reflected only in TinyMCE editor classes, as … Read more

AJAX button with success callback. (Titan Framework)

So now I want to refresh the page using a success callback. I’ve enqueued a simple script via admin_enqueue_scripts: I believe in that script, you need a global JS function named ajax_success_refresh, as in the following example: // This is the ‘success_callback’ for the AJAX action of ‘yyy_reset_security_logs’. function ajax_success_refresh() { window.location.reload( false ); } … Read more

Our Team not showing on website [closed]

From the screenshot, you’re trying to use an [our-team] shortcode which does not exist. You may have deactivated a plugin or made changes to a theme which caused the shortcode to no longer exist. You should look through backups to see what changed and reactivate the plugin or theme that creates the our-team shortcode.

Copy order items with metadata between orders – Woocommerce

Just change the $item_id to $to_order_item_id and you don’t even have to touch the order_item_meta since it is still associated with the proper $item_id. So your foreach from above would be … foreach($order->get_items() as $item_id=>$item) { wc_update_order_item($item_id, array(‘order_id’=>$to_order_item_id)); } Then you could even calculate the new totals of both orders after by using … $original_order … Read more