Timeline for Which hook should I use for this scenario regarding the registration process and account/profile update?
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 14, 2014 at 20:55 | comment | added | rolu | I appreciate your help on this. I just learned something new. | |
Jan 14, 2014 at 20:09 | comment | added | s_ha_dum |
If your file is in the theme directory locate_template will work. It will not work with files in plugin directories.
|
|
Jan 14, 2014 at 20:03 | comment | added | rolu |
So, since ..include/xxx.php is a file I wrote, I should use require_once() instead of locate_template? Would something like this work since the file is located in the child theme? require_once( trailingslashit( get_stylesheet_directory() ) . 'include/xxx.php' );
|
|
Jan 14, 2014 at 19:53 | comment | added | s_ha_dum |
Makes sense. locate_template is only going to work with theme files though.
|
|
Jan 14, 2014 at 19:38 | answer | added | MikeNGarrett | timeline score: 0 | |
Jan 14, 2014 at 19:38 | comment | added | rolu | Basically, the user's input data passes the default WP validation and once the form has been submitted by the user, run the xxx.php file. Does that make sense? | |
Jan 14, 2014 at 19:32 | comment | added | s_ha_dum |
What do you mean by "ONLY"? Is that your way of saying "no Javascript"? Yes, you probably need some validation, and you probably need exit after the include. Have you tested this? What doesn't work?
|
|
Jan 14, 2014 at 19:20 | history | edited | rolu | CC BY-SA 3.0 |
added 24 characters in body
|
Jan 14, 2014 at 19:15 | history | asked | rolu | CC BY-SA 3.0 |