Brandon Wamboldt
Member
Posted 1 year ago #
I am using
add_action( 'ytgallery_edit_form_fields' , 'ibew_edit_taxonomy_fields' );
which uses the ${taxonomy}_edit_form_fields hook to add a new meta box for my custom post type taxonomy (Called Video Gallery). I want to save this data, how abouts do I do this? I know the hook is edit_${taxonomy} but I don't see a way to save this data.
Any ideas?
joehuffman2
Member
Posted 1 year ago #
I don't know what form you are using exactly but I made a form before that updated taxonomies using set post terms:
`wp_set_post_terms( $postid, $taxonomy, 'taxonomy');'
And from there would take the variable (or array) from the form input for $taxonomy. Don't know if those term function could help.