User can add taxonomy
Author | Posts |
---|---|
May 7, 2013 at 5:18 pm 3312 | |
Tareq Hasan | Hi, Is it possible to let users add a taxonomy after having selected a parent taxonomy ? I mean, I have taxonomies as country -> state. After selected a state, if city doesn't already exist as taxonomy, then add it to the form with a "Insert your city" button. |
May 7, 2013 at 7:18 pm 3317 | |
Tareq Hasan | Sorry, thats not possible with the builtin plugin functionality. You’ve to build this functionality on your own with the help of documentation. |
May 7, 2013 at 7:37 pm 3318 | |
ced | Do you mean using a html field or action hook ? Edit. Sorry never mind. Thought your link was the link to the main doc. Can you give more information on the action hook . |
May 7, 2013 at 8:21 pm 3321 | |
Tareq Hasan | The action hook field already gives some information about how to work with action hooks. So the approach you’ve to take is: [php] if ( isset( $_POST[‘your_tax_name_input’] ) ) { add_action( ‘wpuf_add_post_after_insert’, ‘wpufe_create_tax’ ); Thats all I can help. |