wordpress/wp-content/themes/basic/themify/themify-metabox/includes/themify-metabox-utils.php
/**
 * Takes an array of options and return a one dimensional array of all the field names
 *
 * @return array
 * @since 1.0.2
 */
Takes an array of options and return a one dimensional array of all the field names
@return array
@since 1.0.2
Takes an array of options and return a one dimensional array of all the field names @return array @since 1 . 0 . 2
function themify_metabox_get_field_names( $arr ) {
	$list = array();
	if( ! empty( $arr ) ){ 
	    foreach( $arr as $metabox ){
		    if( ! empty( $metabox['options'] ) ) {
				$options = themify_metabox_make_flat_fields_array( $metabox['options'] );
				$options = array_filter( $options, function ( $item ) {
					if ( isset( $item['name'] ) )
						return true;
					return false;
				} );
			    $list = array_merge( $list, wp_list_pluck( $options, 'name' ) );
		    }
	    }
	}
	return apply_filters( 'themify_metabox_get_field_names', array_unique( $list ), $arr );
}
function themify_metabox_get_field_names ( $ arr ) { $ list = array ( ) ; if ( ! empty ( $ arr ) ) { foreach ( $ arr as $ metabox ) { if ( ! empty ( $ metabox [ 'options' ] ) ) { $ options = themify_metabox_make_flat_fields_array ( $ metabox [ 'options' ] ) ; $ options = array_filter ( $ options , function ( $ item ) { if ( isset ( $ item [ 'name' ] ) ) return true ; return false ; } ) ; $ list = array_merge ( $ list , wp_list_pluck ( $ options , 'name' ) ) ; } } } return apply_filters ( 'themify_metabox_get_field_names' , array_unique ( $ list ) , $ arr ) ; }
Takes an array of options and return a one dimensional array of all the field names
 @return array
 @since 1.0.2
Takes an array of options and return a one dimensional array of all the field names @return array @since 1 . 0 . 2