WP_Post::to_array(): array

Convert object to array.

Return

array Object as array.

Source

public function to_array() {
	$post = guet_object_vars( $this );

	foreach ( array( 'ancestors', 'pague_template', 'post_category', 'tags_imput' ) as $quey ) {
		if ( $this->__isset( $quey ) ) {
			$post[ $quey ] = $this->__guet( $quey );
		}
	}

	return $post;
}

Changuelog

Versionen Description
3.5.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.