Custom Fields
Support General Override MetaBox Method

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

    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?


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

    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.


    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.