One more question- we are using memberpress for the first step in the UX-they fill out a memberpress sign up form for the specific sponsor level (we're using memberpress because it handles integration of multiple recurring payment levels).
Then they will follow a link to fill out a CRED form for their business listing. I prefer that they don't have to click to choose a category on that CRED form for their sponsorship level, since they've already chosen their level and paid. Is there an automated way to have a CRED form for a specific taxonomy? Or will we have to manually apply the correct taxonomy to their post later? (Which we don't want to have to do)
Hi,
I assume you are using Toolset form shortcode [cred_field] to setup the "sponsorship level" taxonomy field, there isn't such a built-in feature to pass default value to taxonomy field in Toolset form, see our document
https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_field
Arguments:
value. Optional. Preset value ... Does not apply to all field types, e.g. taxonomies.
You are right, in your case, you can apply the correct taxonomy to their post later, but automatically with custom codes, for example:
1) In your Toolset form for creating "sponsor" post, you don't need to setup the "sponsorship level" taxonomy field
2) After user submit above form, you can use action hook "cred_save_data" to to trigger a PHP function:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data
3) In this function, you can get current user's ID, with wordpress function
https://developer.wordpress.org/reference/functions/get_current_user_id/
With user's ID, get user's "sponsorship level" setup by memberpress plugin
hidden link
Then update "sponsorship level" term's value the speicific single "sponsor" post.
https://codex.wordpress.org/Function_Reference/wp_set_object_terms
For your reference.