Override MetaBox Method

Support General Override MetaBox MethodResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17793
    DaveDave
    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

    #17799
    Anh TranAnh 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
    DaveDave
    Participant

    Excellent, just what I was looking for.

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