Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

207
Vistas
When order status change into my custom statuses then process a bulk action too

Can someone please help me.

I have a shipping plugin what add a Bulk action at orders admin page in woocommerce. It's an action and if I choose it it send order shipping data to the GLS automatically, but we need too call it always fron the admin page.

We have a windows based invoice and stock program, what can get the orders from woocommerce and can change the status too.

We want to call the above action from this program too.

So I need to call this action automatically when I change the orders status in the program into my custom order status.

I had a custom status, and the program is send back to woocommerce the status change and it works well. I only need a solution, how can I call the bulk action to process when I change the order status.

$path = "./wp-content/plugins/wc-pont/includes/mygls.php";
include_once($path);

add_action( 'woocommerce_order_status_changed', 'callaction', 10, 2 );

function callaction( $order_id, $action ){   
   global $woocommerce;
   $order = new WC_Order( $order_id );
        if ( $order->status == "mycustomorderstatus" ) {
          exportGLS($order_ids); //this is the function what is in the mygls.php and what I need to call.
        }
}

Thank you for your helps.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

the same action you just need to check for $_REQUEST['post'] to get the ids

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda