메소드 | 설명 | |
---|---|---|
__construct ( array $data = [] ) | Constructor. Sets up the properties. | |
from_existing ( |
Returns a new context object, instantiated according to the data in the given context object and the array. | |
from_request ( ) : static | Returns a new context object, instantiated according to the data in the current request. | |
new_post_id ( ) : integer | Returns the new post ID. | |
new_post_title ( ) : string | Returns the new post title. | |
remote_post_id ( ) : integer | Returns the remote post ID. | |
remote_site_id ( ) : integer | Returns the remote site ID. | |
source_post ( ) : WP_Pos\WP_Post | null | Returns the source post object. | |
source_post_id ( ) : integer | Returns the source post ID. | |
source_site_id ( ) : integer | Returns the source site ID. |
public __construct ( array $data = [] ) | ||
$data | array | Optional. Initial context data. Defaults to empty array. |
public static from_existing ( |
||
$context | Context object. | |
$data | array | Context data. |
리턴 | Context object. |
public static from_request ( ) : static | ||
리턴 | static | Context object. |
public new_post_id ( ) : integer | ||
리턴 | integer | New post ID. |
public new_post_title ( ) : string | ||
리턴 | string | New post title. |
public remote_post_id ( ) : integer | ||
리턴 | integer | Remote post ID. |
public remote_site_id ( ) : integer | ||
리턴 | integer | Remote site ID. |
public source_post ( ) : WP_Pos\WP_Post | null | ||
리턴 | WP_Pos\WP_Post | null | Source post object. |
public source_post_id ( ) : integer | ||
리턴 | integer | Source post ID. |
public source_site_id ( ) : integer | ||
리턴 | integer | Source site ID. |