| Methods |
public
|
__construct()
|
#
|
public
|
Children()
PHP4 constructor
|
#
|
public
|
init(object $EP): void
Initialize
|
#
|
public
|
add_post_type(): void
Registers custom post-type
Registers custom post-type
|
#
|
public
|
get_settings(&$ep_settings, &$reg_settings)
Alter settings from eventpost_getsettings_action filter
Alter settings from eventpost_getsettings_action filter
|
#
|
public
|
add_custom_box(string $post_type)
Add custom box
|
#
|
public
|
add_custom_box_position($position, $post_type)
|
#
|
public
|
get_post_types(array $post_types = []): array
Remove self post type form global list
Remove self post type form global list
|
#
|
public
|
_delete_child(int $child_id): bool
Delete a child
|
#
|
public
|
_sync_child(int $child_id)
Syncs a child
|
#
|
public
|
_add_child(int $post_id): int|WP_Error
Add a child
Returns
The post ID on success. The value 0 or WP_Error on failure.
|
#
|
public
|
get(int $post_id): array
Get a child
|
#
|
public
|
save_postdata(int $post_id): void
Saves a child
|
#
|
public
|
retreive(WP_Post $event): object
Retreive a child's details
Retreive a child's details
|
#
|
public
|
hide_children_of_unpublished(array $events): array
Removes from public lists the children whose parent is not publicly readable
Removes from public lists the children whose parent is not publicly readable
|
#
|
public
|
notice()
Shows notices
|
#
|
public
|
check_admin_legitimity()
|
#
|
public
|
can_add_child(int $post_id): bool
Checks that the current user is allowed to add children to a post
Checks that the current user is allowed to add children to a post
|
#
|
public
|
can_delete_child(int $post_id, int $child_id): bool
Checks that the current user is allowed to delete a child of a post
Checks that the current user is allowed to delete a child of a post
|
#
|
public
|
check_ajax_legitimity(): void
Checks nonce for AJAX requests and answers in JSON on failure
Checks nonce for AJAX requests and answers in JSON on failure
|
#
|
public
|
add_child_admin_post(): void
Triggers child add on form submission
Triggers child add on form submission
|
#
|
public
|
add_child_ajax()
|
#
|
public
|
delete_child_admin_post()
|
#
|
public
|
delete_child_ajax(): void
Deletes a child event from an AJAX request
Deletes a child event from an AJAX request
|
#
|
public
|
settings_form(type $ep_settings)
Settings form
|
#
|
public
|
edit_form_top(type $post)
Edit form
|
#
|
public
|
inner_custom_box_children()
Displays the children custom box
Displays the children custom box
|
#
|
public
|
columns_head(array $defaults): array
Alters columns
|
#
|
public
|
columns_content(string $column_name, int $post_id)
Echoes content of a row in a given column
Echoes content of a row in a given column
|
#
|
public
|
display_single($eventbar, $event)
|
#
|