Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
PUM_Abstract_Model_Post::setup( WP_Post $post )
Given the post data, let’s set the variables
Description Description
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
Parameters Parameters
- $post
-
(Required)
Source Source
File: classes/Abstract/Model/Post.php
protected function setup( $post ) { if ( ! is_a( $post, 'WP_Post' ) || ! $this->is_required_post_type( $post ) ) { $this->valid = false; return; } $this->post = $post; foreach ( get_object_vars( $post ) as $key => $value ) { $this->$key = $value; } }
Expand full source code Collapse full source code View on Trac