add_action( ‘manage_shop_order_posts_custom_column’ , ‘custom_orders_list_column_content’, 50, 2 ); function custom_orders_list_column_content( $column, $post_id ) { global $the_order, $post; if ( $column == ‘shipping_address’ ) { if( $phone = $the_order->get_billing_phone() ){ $phone_wp_dashicon = ‘ ‘; echo ‘‘. $phone.’‘; } } if ( ‘order_status’…Continue reading
add_filter( ‘bulk_actions-edit-shop_order’, ‘misha_register_bulk_action’ ); // edit-shop_order is the screen ID of the orders page function misha_register_bulk_action( $bulk_actions ) { $bulk_actions[ ‘mark_packed’ ] = ‘Change status to packed’; //Change status to packed$bulk_actions[ ‘mark_shipping’ ] = ‘Change status to shipping’; //Change status…Continue reading
/* * Register a custom order status * * @author Misha Rudrastyh * @url https://rudrastyh.com/woocommerce/order-statuses.html */ add_action( ‘init’, ‘custom_order_status’ ); function custom_order_status() { register_post_status( ‘wc-custom-packed’, array( ‘label’ => ‘Packed’, ‘public’ => true, ‘show_in_admin_status_list’ => true, ‘label_count’ => _n_noop( ‘Packed (%s)’,…Continue reading
add_filter(‘register_post_type_args’, function ($args, $post_type) { if($post_type === ‘post’) { $args[‘labels’][‘name’] = __(‘Blogs’); $args[‘labels’][‘name_admin_bar’] = __(‘Blogs’); $args[‘labels’][‘singular_name’] = __(‘Blogs’); $args[‘labels’][‘new_item’] = __(‘Add Blogs’); $args[‘labels’][‘edit_item’] = __(‘Edit Blogs’); $args[‘labels’][‘delete_item’] = __(‘Remove Blogs’); $args[‘labels’][‘view_item’] = __(‘View Blogs’); $args[‘labels’][‘all_items’] = __(‘All Blogs’); $args[‘labels’][‘search_items’] =…Continue reading
add_filter( ‘sanitize_file_name’, ‘mb_strtolower’ );Continue reading
/** * Generate a Unique Member Number for Display on Membership Account, Confirmation Email and More * * Change the generate_member_number function if your member number needs to be in a certain format. * * Member numbers are generated when…Continue reading
window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag(‘js’, new Date()); gtag(‘config’, ‘G-7X38N6QS3M’); GContinue reading
window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag(‘js’, new Date()); gtag(‘config’, ‘G-7X38N6QS3M’); GContinue reading