Update taxonomies.
This commit is contained in:
@@ -29,6 +29,11 @@ class Opalestate_Taxonomy_Label {
|
||||
add_action( 'init', [ $this, 'definition' ] );
|
||||
add_filter( 'opalestate_taxomony_label_metaboxes', [ $this, 'metaboxes' ] );
|
||||
add_action( 'cmb2_admin_init', [ $this, 'taxonomy_metaboxes' ], 999 );
|
||||
|
||||
add_filter( 'get_opalestate_label', function( $term ){
|
||||
$term->meta = get_term_meta( $term->term_id ); // all metadata
|
||||
return $term;
|
||||
} );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user