public function save_meta( $post_id, $post ) {

		$this->post = $post;
		$data       = $this->get_data();

		if ( ! $this->is_active() || empty( $data ) ) {
			return;
		}

		// save compiled data
		update_post_meta( $post_id, $this->slug, $data );
		$data = call_user_func_array( 'array_merge', $data );

		foreach ( $data as $meta_key => $meta_value ) {

			$this->save_meta_data( $meta_key, $meta_value );
		}

	}
public function save_meta( $post_id, $post ) {

		$this->post = $post;
		$data       = $this->get_data();

		if ( ! $this->is_active() || empty( $data ) ) {
			return;
		}

		// save compiled data
		update_post_meta( $post_id, $this->slug, $data );
		$data = call_user_func_array( 'array_merge', $data );

		foreach ( $data as $meta_key => $meta_value ) {

			$this->save_meta_data( $meta_key, $meta_value );
		}

	}
public function save_meta ( $ post_id , $ post ) { $ this -> post = $ post ; $ data = $ this -> get_data ( ) ; if ( ! $ this -> is_active ( ) || empty ( $ data ) ) { return ; } // save compiled data update_post_meta ( $ post_id , $ this -> slug , $ data ) ; $ data = call_user_func_array ( 'array_merge' , $ data ) ; foreach ( $ data as $ meta_key => $ meta_value ) { $ this -> save_meta_data ( $ meta_key , $ meta_value ) ; } }
Saves a metabox data

@uses   "save_post" hook
@since  1.0.0
@access public

@param int     $post_id ID of the current post being saved
@param wp_post $post    Current post being saved
Saves a metabox data