components/Pages.php
public function save_meta( $_null, $post_ID = null, $meta_key = null, $meta_value = null ) {

		if ( 'code' === $meta_key ) {
			$post = get_post( $post_ID );

			if ( is_object( $post ) && $this->object_type == $post->post_type ) {
				$postdata = array(
					'ID'           => $post_ID,
					'post_content' => $meta_value,
				);

				remove_filter( current_filter(), array( $this, __FUNCTION__ ) );

				$revisions = false;

				if ( has_action( 'pre_post_update', 'wp_save_post_revision' ) ) {
					remove_action( 'pre_post_update', 'wp_save_post_revision' );

					$revisions = true;
				}

				wp_update_post( (object) $postdata );
				// objects will be automatically sanitized
				if ( $revisions ) {
					add_action( 'pre_post_update', 'wp_save_post_revision' );
				}

				return true;
			}//end if
		}//end if

		return $_null;
	}
public function save_meta( $_null, $post_ID = null, $meta_key = null, $meta_value = null ) {

		if ( 'code' === $meta_key ) {
			$post = get_post( $post_ID );

			if ( is_object( $post ) && $this->object_type == $post->post_type ) {
				$postdata = array(
					'ID'           => $post_ID,
					'post_content' => $meta_value,
				);

				remove_filter( current_filter(), array( $this, __FUNCTION__ ) );

				$revisions = false;

				if ( has_action( 'pre_post_update', 'wp_save_post_revision' ) ) {
					remove_action( 'pre_post_update', 'wp_save_post_revision' );

					$revisions = true;
				}

				wp_update_post( (object) $postdata );
				// objects will be automatically sanitized
				if ( $revisions ) {
					add_action( 'pre_post_update', 'wp_save_post_revision' );
				}

				return true;
			}//end if
		}//end if

		return $_null;
	}
public function save_meta ( $ _null , $ post_ID = null , $ meta_key = null , $ meta_value = null ) { if ( 'code' === $ meta_key ) { $ post = get_post ( $ post_ID ) ; if ( is_object ( $ post ) && $ this -> object_type == $ post -> post_type ) { $ postdata = array ( 'ID' => $ post_ID , 'post_content' => $ meta_value , ) ; remove_filter ( current_filter ( ) , array ( $ this , __FUNCTION__ ) ) ; $ revisions = false ; if ( has_action ( 'pre_post_update' , 'wp_save_post_revision' ) ) { remove_action ( 'pre_post_update' , 'wp_save_post_revision' ) ; $ revisions = true ; } wp_update_post ( ( object ) $ postdata ) ; // objects will be automatically sanitized if ( $ revisions ) { add_action ( 'pre_post_update' , 'wp_save_post_revision' ) ; } return true ; } //end if } //end if return $ _null ; }
Save the fields

@param        $_null
@param int    $post_ID
@param string $meta_key
@param null   $meta_value

@return bool|int|null
Save the fields