Custom Fields
Re-Envisioned
Support General Override MetaBox Method

  • This topic has 2 replies, 2 voices, and was last updated 2 weeks ago by Dave.
  • Creator
    Topic
  • #17793
    Resolved Dave
    Participant

    I have created a custom taxonomy and I want to make each one user specific (the user can only see and use the tags they created when using MB Frontend Submission). To do this I changed some code in taxonomy.php to set the slug of the term to have the User Id at the end. Currently, the term was being saved with ‘wp_insert_term()’ in ‘protected static function add_term($field)’ but the $args were not passed.

    I don’t like this solution because the changes I made will be lost when I update MetaBox. Is there documentation for creating my own MetaBox extension plugin?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #17799
    Anh Tran
    Keymaster

    Hi Dave,

    I’d suggest creating a custom field type that extends the taxonomy field type. We have a documentation for that here. You can overwrite the default methods of the plugin and write your own.

    #17808
    Dave
    Participant

    Excellent, just what I was looking for.

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

Newsletter

Subscribe to our newsletter to receive news and tutorials for Meta Box and WordPress.


grid gear info copy caret-up caret-down trash