You appear to be a bot. Output may be restricted
Description
Construct a node
We shouldn't add the post until we've actually added the node to the list Otherwise we end up getting posts too many times. But other times we may already have the post to pass.
Usage
OIK_clone_tree_node::__construct( $id, $originator, $relative_position, $relationship, $post );
Parameters
- $id
- ( ID ) required –
- $originator
- ( string ) optional –
- $relative_position
- ( integer ) optional –
- $relationship
- ( string ) optional default: Telf – Note: oik-shortcode parser can't handle self::CLONE_SELF so default
- $post
- ( post ) optional –
Returns
void
TO DO
oik-shortcode parser can't handle self::CLONE_SELF so default is hardcoded as "self"
Source
File name: oik-clone/admin/class-oik-clone-tree-node.php
Lines:
1 to 8 of 8
function __construct( $id, $originator=null, $relative_position=0, $relationship="self", $post=null ) { $this->id = $id; $this->originator = $originator; $this->relative_position = $relative_position; $this->relationship = $relationship; $this->post = $post; // $this->get_post(); }