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

330
Vistas
WooCommerce how to remove order actions (WordPress)

When you view an order in back-end there is a drop down list a the right side "Order actions". I was wondering how to remove some of these actions? I just need "Resend Processing order" - everything else should be removed.

Screenshot

I have done a Google-search but mostly the results show how to add custom order actions and not how to remove them.

Thanks!

about 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

add_filter( 'woocommerce_order_actions', 'woocommerce_remove_order_actions' );
function woocommerce_remove_order_actions( $order_emails ) {
    unset($order_emails['regenerate_download_permissions']);
    return $order_emails;
}

I see that this has not been resolved 100%. You can use the woocommerce_order_actions hook and unset elements you don't want to see in that dropdown.

about 4 years ago · Santiago Trujillo Denunciar

0

well, this should do it.

add_filter( 'woocommerce_resend_order_emails_available', 'woocommerce_resend_order_emails_available' );
function woocommerce_resend_order_emails_available( $order_emails ) {

    //$order_emails has array( 'new_order', 'cancelled_order', 'customer_processing_order', 'customer_completed_order', 'customer_invoice' );

    $remove = array( 'new_order', 'cancelled_order', 'customer_completed_order', 'customer_invoice' ); // remove these 4
    $order_emails = array_diff( $order_emails, $remove );

    return $order_emails;

}
about 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