Custom field : Taxonomy - Add new term with auto add Term Meta = Current User ID

Support MB Term Meta Custom field : Taxonomy - Add new term with auto add Term Meta = Current User IDResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #40158
    justdoit123justdoit123
    Participant

    Hi, currently i'm using custom field : Taxonomy that can: add new Term,

    can you please help me with code or hook example so that
    => i can "add term meta = current logged in user ID " to the new term ??

    also how do is filter the Taxonomy (select2 search) to show only Taxonomy created by current user ID (base on term meta = current logged in user ID)

    i think this is essential feature

    many thanks

    #40166
    PeterPeter
    Moderator

    Hello there,

    1. Supporting a customization code for your specific needs is beyond our scope of support. Please read more here https://support.metabox.io/topic/support-policy/
    I think you can use the action hook rwmb_after_save_post or rwmb_after_save_field to add your callback function to update the term meta.
    https://docs.metabox.io/actions/rwmb-after-save-field/
    https://docs.metabox.io/actions/rwmb-after-save-post/

    2. Please use the setting query_args to filter taxonomy by meta value. Please read more on the documentation https://docs.metabox.io/fields/taxonomy/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.