wordpress/wp-content/themes/basic/themify/themify-metabox/includes/themify-metabox-core.php
/**
	 * Save Custom Write Panel Data
	 * @param number
	 * @return mixed
	 */
Save Custom Write Panel Data
@param number
@return mixed
Save Custom Write Panel Data @param number @return mixed
function save_postdata( $post_id ) {
		global $post;
		if( function_exists( 'icl_object_id' ) && current_filter() === 'save_post' ) {
			wp_cache_delete( $post_id, 'post_meta' );
		}
		if ( ! isset( $_POST['post_type'] ) || ('page' === $_POST['post_type'] && ! current_user_can( 'edit_page', $post_id )) || ('page' !== $_POST['post_type'] && ! current_user_can( 'edit_post', $post_id ))) {
			return $post_id;
		} 
		if( !empty( $_POST['themify_proper_save'] )) {
			foreach( $this->get_meta_boxes() as $meta_box ) {
				$tabs = $this->get_meta_box_options( $meta_box['id'], $_POST['post_type'] );
				if( empty( $tabs ) )
					continue;
				foreach( $tabs as $tab ) {
					foreach ( $tab['options'] as $field ) {
						if( 'multi' === $field['type'] ) {
							foreach ( $field['meta']['fields'] as $field ) {
								$this->_save_meta( $field, $post_id );
							}
						} elseif ( 'toggle_group' === $field['type'] ) {
							foreach ( $field['meta'] as $field_toggle ) {
								if ( 'multi' === $field_toggle['type'] ) {
									foreach ( $field_toggle['meta']['fields'] as $field_multi ) {
										$this->_save_meta( $field_multi, $post_id );
									}
								} else {
									$this->_save_meta( $field_toggle, $post_id );
								}
							}
						} else {
							$this->_save_meta( $field, $post_id );
						}
					}
				}
			}
		} else {
			if ( isset( $post ) && isset( $post->ID ) ) {
				return $post->ID;
			}
		}
		return false;
	}
function save_postdata ( $ post_id ) { global $ post ; if ( function_exists ( 'icl_object_id' ) && current_filter ( ) === 'save_post' ) { wp_cache_delete ( $ post_id , 'post_meta' ) ; } if ( ! isset ( $ _POST [ 'post_type' ] ) || ( 'page' === $ _POST [ 'post_type' ] && ! current_user_can ( 'edit_page' , $ post_id ) ) || ( 'page' !== $ _POST [ 'post_type' ] && ! current_user_can ( 'edit_post' , $ post_id ) ) ) { return $ post_id ; } if ( ! empty ( $ _POST [ 'themify_proper_save' ] ) ) { foreach ( $ this -> get_meta_boxes ( ) as $ meta_box ) { $ tabs = $ this -> get_meta_box_options ( $ meta_box [ 'id' ] , $ _POST [ 'post_type' ] ) ; if ( empty ( $ tabs ) ) continue ; foreach ( $ tabs as $ tab ) { foreach ( $ tab [ 'options' ] as $ field ) { if ( 'multi' === $ field [ 'type' ] ) { foreach ( $ field [ 'meta' ] [ 'fields' ] as $ field ) { $ this -> _save_meta ( $ field , $ post_id ) ; } } elseif ( 'toggle_group' === $ field [ 'type' ] ) { foreach ( $ field [ 'meta' ] as $ field_toggle ) { if ( 'multi' === $ field_toggle [ 'type' ] ) { foreach ( $ field_toggle [ 'meta' ] [ 'fields' ] as $ field_multi ) { $ this -> _save_meta ( $ field_multi , $ post_id ) ; } } else { $ this -> _save_meta ( $ field_toggle , $ post_id ) ; } } } else { $ this -> _save_meta ( $ field , $ post_id ) ; } } } } } else { if ( isset ( $ post ) && isset ( $ post -> ID ) ) { return $ post -> ID ; } } return false ; }
Save Custom Write Panel Data
 @param number
 @return mixed
Save Custom Write Panel Data @param number @return mixed
// Grouped fields