• Resolved Vinicius

    (@vinigoulart)


    does anyone know how i can call the “woocommerce_register_form_start” function outside of theme functions.php?

    i trying add custom fields in registry wordpress. but all solutions that i found is “create in functions.php theme folder”.

    but i dont want make the custom fields in functions.php, so i made a plugin, but the add_action(‘woocommerce_register_form_start’, $function) doesnt working here. i need import some archive or something like that?

    https://ibb.co/x85FBBK <- images

    • This topic was modified 2 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 4 replies - 1 through 4 (of 4 total)
  • It might not work because your template file is not loaded at all. Check this by test outputs in this one.

    Thread Starter Vinicius

    (@vinigoulart)

    that was it

    why is it not get in into my “add_fields” function? am i calling it wrong?

    https://ibb.co/Y2RSGwX
    https://ibb.co/z74hby1

    • This reply was modified 2 years, 8 months ago by Vinicius.
    • This reply was modified 2 years, 8 months ago by Vinicius.
    • This reply was modified 2 years, 8 months ago by Vinicius.

    I don’t know what you are trying to show me exactly, the plugin.php is part of wordpress itself. If you are unsure whether something is executed, build back output to test values with var_dump(). With this you should be able to see which value applies where and why something might not happen.

    Thread Starter Vinicius

    (@vinigoulart)

    i found the problem, thanks for the help

    • This reply was modified 2 years, 8 months ago by Vinicius.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘access woocommerce_register_form_start ousite function.php’ is closed to new replies.