Term Meta calss structure
Class structure for the Taxonomy-Term-Meta.
class Custom_Term_Meta { public function __construct() { if ( is_admin() ) { add_action( 'category_add_form_fields', array( $this, 'create_screen_fields'), 10, 1 ); add_action( 'category_edit_form_fields', array( $this, 'edit_screen_fields' ), 10, 2 ); add_action( 'created_category', array( $this, 'save_data' ), 10, 1 ); add_action( 'edited_category', array( $this, 'save_data' ), 10, 1 ); } } public function create_screen_fields( $taxonomy ) { } public function edit_screen_fields( $term, $taxonomy ) { } public function save_data( $term_id ) { } } new Custom_Term_Meta;