• I am trying to pass orderby value to do_action( 'woocommerce_cart_collaterals') but it doesn’t seem to work.

    This is what I did:

    do_action( 'woocommerce_cart_collaterals', 4, 1, 'title' );

    I also tried this but doesn’t work:

    $args = array(
      'posts_per_page'   => 4,
      'columns'	     => 1,
      'orderby'          => 'title',
      'order'	     => 'asc'
    );
    do_action( 'woocommerce_cart_collaterals', $args );

    What am I doing wrong?

    https://www.ads-software.com/plugins/woocommerce/

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Passing orderby value to woocommerce_cart_collaterals doesn't seem to work.’ is closed to new replies.