• Resolved Farhad Sakhaei

    (@farhad0)


    Hi,

    I am developing a plugin that inserts some fields to woocommerce checkout fields,
    But seems this action doesn’t work at all from plugin:

    add_action( 'woocommerce_after_order_notes', 'hello', 10, 1 );
    function hello(){
         echo 'hello';
    }

    I tested to check if the funtion calls or not, but the function doesn’t call at all
    What’s the problem?
    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @farhad0, thanks for reaching out.

    Helping out with custom coding of this nature is outside the scope of support that our support staff can help out with here, although I would recommend the following:

    1. Running the exact question you’re asking, along with the code provided, through an AI platform like ChatGPT for recommendations/changes to your code;
    2. Joining our WooCommerce Slack community (it does have a developer channel where you can ask coding questions): https://woo.com/community-slack/

    Hope it helps!

    Thread Starter Farhad Sakhaei

    (@farhad0)

    @ckadenge
    Hi,
    Thank you for your reply,

    I created an issue on woocommerce github for this purpose,
    And when I click on the link of Slack “Let’s Go”, the following error display

    This link is no longer active

    To join this workspace, you’ll need to ask the person who originally invited you for a new link.

    Hey, @farhad0!

    I just tried the link and I was able to get in. Do you mind trying again on a different browser to check?

    You can visit the WooCommerce Facebook group for help with custom code.

    Have a wonderful day!

    Thread Starter Farhad Sakhaei

    (@farhad0)

    @carolm29
    Hi,

    I could login , Thank you

    Hi,

    I could login , Thank you

    Glad to hear you were able to log into the Slack group. There, you can ask questions and collaborate with different developers to achieve your desired customisation.

    Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘action doesn’t work’ is closed to new replies.