lp__add_field_group_form_fields( $taxonomy, $args )
This function is used to render the field group taxonomy form fields. This function takes parameters such as the taxonomy, field group arguments, title, context, and priority to configure and add the meta box.
Plugin
Namespace
Launchpad\Fields
Parameters
array
$taxonomy
Taxonomy where the field are rendered
array
$args
Field group arguments
Return
void
Source
File: \includes\lp-field-group-functions.php
function lp__add_field_group_form_fields( $taxonomy, $args ){
add_action( $taxonomy . '_add_form_fields', function( $taxonomy ) use ( $args ){
extract( $args );
if($active){
lp__render_field_group_form_fields( null, $taxonomy, $args );
}
}, $args['position'] );
add_action( $taxonomy . '_edit_form_fields', function( $term, $taxonomy ) use ( $args ){
extract( $args );
if($active){
lp__render_field_group_form_fields( $term, $taxonomy, $args );
}
}, $args['position'], 2 );
}