Метод | Описание | |
---|---|---|
__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. |