Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #979400

    Hi,
    I want to add a “Shipped” status to my Woo statuses and found the below online. Before I try this I wanted to check with you guys if it looks ok (except I’d change awaiting shipment to shipped). Nothing will conflict with Enfold?

    // Register new status
    function register_awaiting_shipment_order_status() {
    register_post_status( ‘wc-awaiting-shipment’, array(
    ‘label’ => ‘Awaiting shipment’,
    ‘public’ => true,
    ‘exclude_from_search’ => false,
    ‘show_in_admin_all_list’ => true,
    ‘show_in_admin_status_list’ => true,
    ‘label_count’ => _n_noop( ‘Awaiting shipment (%s)’, ‘Awaiting shipment (%s)’ )
    ) );
    }
    add_action( ‘init’, ‘register_awaiting_shipment_order_status’ );

    #979732

    Hey Rgrant74,

    I can’t see problems with that, please try it out to see if it works. Where did you get the code by the way?

    Best regards,
    Rikard

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.