• Resolved valousal

    (@valentinanamorphik)


    Hi,

    the ‘ppress_checkout_order_button_text‘ hook is present twice but with a different number of arguments.

    Is it possible to fix it?

    THANKS.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter valousal

    (@valentinanamorphik)

    $submit_button_text = apply_filters('ppress_checkout_order_button_text', sprintf('Pay %s', ppress_display_amount($order_total)), $order_total);
    
    if ($plan->is_recurring()) $submit_button_text = esc_html__('Subscribe', 'wp-user-avatar');
    
    if ($plan->has_free_trial()) $submit_button_text = esc_html__('Start Trial', 'wp-user-avatar');
    
    $submit_button_text = apply_filters('ppress_checkout_order_button_text', $submit_button_text, $order_total, $plan);
    Plugin Author Collins Agbonghama

    (@collizo4sky)

    This will be fixed in the next update. We’ve added $plan to the other filter where it is missing.

    Thanks for pointing this out.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Arguments on hook’ is closed to new replies.