• Resolved yogishpuri

    (@yogishpuri)


    I’m trying to override the admin notice based on the order status. I’m unable to do that since there’s an error in cancel-order-request-form.php (at least I believe so). It uses $admin_notice but it should use filtered value: $admin_message ( based on cancel-request.php -> getOrderCancelForm() )

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author rajeshsingh520

    (@rajeshsingh520)

    Hi,

    Thanks for letting us know, upgrade to latest version released today v1.2.1.7 we have corrected in that, now it uses $admin_message so your filter will work

    here is the sample code of the filter

    
    
    add_filter('pisol_corw_filter_admin_notice_text', function($v){ return "New message"; });
    
    
    Thread Starter yogishpuri

    (@yogishpuri)

    Thank you very much for such a fast reaction.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unable to override the admin notice’ is closed to new replies.