Listing extends Component
Handles listings.
Table of Contents
- __construct() : mixed
- Class constructor.
- add_listing_admin_columns() : array<string|int, mixed>
- Adds listing admin columns.
- add_post_states() : array<string|int, mixed>
- Adds post states.
- alter_listing_images_meta_box() : array<string|int, mixed>
- Alters listing images meta box.
- alter_listing_manage_menu() : array<string|int, mixed>
- Alters listing manage menu.
- alter_listing_settings_meta_box() : array<string|int, mixed>
- Alters listing settings meta box.
- alter_listing_view_blocks() : array<string|int, mixed>
- Alters listing view blocks.
- alter_model_fields() : array<string|int, mixed>
- Alters model fields.
- alter_submit_form() : array<string|int, mixed>
- Alters submit form.
- alter_update_form() : array<string|int, mixed>
- Alters update form.
- alter_user_account_menu() : array<string|int, mixed>
- Alters user account menu.
- expire_listings() : mixed
- Expires listings.
- render_listing_admin_columns() : mixed
- Renders listing admin columns.
- set_category_count_callback() : array<string|int, mixed>
- Sets category count callback.
- set_request_context() : array<string|int, mixed>
- Sets request context.
- update_category_count() : mixed
- Updates category count.
- update_image() : mixed
- Updates listing image.
- update_listing() : mixed
- Updates listing.
- update_status() : mixed
- Updates listing status.
- boot() : mixed
- Bootstraps component properties.
- set_callbacks() : mixed
- Sets the action and filter callbacks.
- set_property() : mixed
- Sets a property value.
Methods
__construct()
Class constructor.
public
__construct([array<string|int, mixed> $args = [] ]) : mixed
Parameters
- $args : array<string|int, mixed> = []
-
Component arguments.
Return values
mixed —add_listing_admin_columns()
Adds listing admin columns.
public
add_listing_admin_columns(array<string|int, mixed> $columns) : array<string|int, mixed>
Parameters
- $columns : array<string|int, mixed>
-
Columns.
Return values
array<string|int, mixed> —add_post_states()
Adds post states.
public
add_post_states(array<string|int, mixed> $states, WP_Post $post) : array<string|int, mixed>
Parameters
- $states : array<string|int, mixed>
-
Post states.
- $post : WP_Post
-
Post object.
Return values
array<string|int, mixed> —alter_listing_images_meta_box()
Alters listing images meta box.
public
alter_listing_images_meta_box(array<string|int, mixed> $meta_box) : array<string|int, mixed>
Parameters
- $meta_box : array<string|int, mixed>
-
Meta box arguments.
Return values
array<string|int, mixed> —alter_listing_manage_menu()
Alters listing manage menu.
public
alter_listing_manage_menu(array<string|int, mixed> $items, object $menu) : array<string|int, mixed>
Parameters
- $items : array<string|int, mixed>
-
Menu items.
- $menu : object
-
Menu object.
Return values
array<string|int, mixed> —alter_listing_settings_meta_box()
Alters listing settings meta box.
public
alter_listing_settings_meta_box(array<string|int, mixed> $meta_box) : array<string|int, mixed>
Parameters
- $meta_box : array<string|int, mixed>
-
Meta box arguments.
Return values
array<string|int, mixed> —alter_listing_view_blocks()
Alters listing view blocks.
public
alter_listing_view_blocks(array<string|int, mixed> $blocks, object $template) : array<string|int, mixed>
Parameters
- $blocks : array<string|int, mixed>
-
Block arguments.
- $template : object
-
Template object.
Return values
array<string|int, mixed> —alter_model_fields()
Alters model fields.
public
alter_model_fields(array<string|int, mixed> $model) : array<string|int, mixed>
Parameters
- $model : array<string|int, mixed>
-
Model arguments.
Return values
array<string|int, mixed> —alter_submit_form()
Alters submit form.
public
alter_submit_form(array<string|int, mixed> $form) : array<string|int, mixed>
Parameters
- $form : array<string|int, mixed>
-
Form arguments.
Return values
array<string|int, mixed> —alter_update_form()
Alters update form.
public
alter_update_form(array<string|int, mixed> $form_args, object $form) : array<string|int, mixed>
Parameters
- $form_args : array<string|int, mixed>
-
Form arguments.
- $form : object
-
Form object.
Return values
array<string|int, mixed> —alter_user_account_menu()
Alters user account menu.
public
alter_user_account_menu(array<string|int, mixed> $menu) : array<string|int, mixed>
Parameters
- $menu : array<string|int, mixed>
-
Menu arguments.
Return values
array<string|int, mixed> —expire_listings()
Expires listings.
public
expire_listings() : mixed
Return values
mixed —render_listing_admin_columns()
Renders listing admin columns.
public
render_listing_admin_columns(string $column, int $listing_id) : mixed
Parameters
- $column : string
-
Column name.
- $listing_id : int
-
Listing ID.
Return values
mixed —set_category_count_callback()
Sets category count callback.
public
set_category_count_callback(array<string|int, mixed> $taxonomies) : array<string|int, mixed>
Parameters
- $taxonomies : array<string|int, mixed>
-
Taxonomy arguments.
Return values
array<string|int, mixed> —set_request_context()
Sets request context.
public
set_request_context(array<string|int, mixed> $context) : array<string|int, mixed>
Parameters
- $context : array<string|int, mixed>
-
Request context.
Return values
array<string|int, mixed> —update_category_count()
Updates category count.
public
update_category_count(array<string|int, mixed> $term_taxonomy_ids) : mixed
Parameters
- $term_taxonomy_ids : array<string|int, mixed>
-
Term taxonomy IDs.
Return values
mixed —update_image()
Updates listing image.
public
update_image(int $listing_id) : mixed
Parameters
- $listing_id : int
-
Listing ID.
Return values
mixed —update_listing()
Updates listing.
public
update_listing(int $listing_id, object $listing) : mixed
Parameters
- $listing_id : int
-
Listing ID.
- $listing : object
-
Listing object.
Return values
mixed —update_status()
Updates listing status.
public
update_status(int $listing_id, string $new_status, string $old_status, object $listing) : mixed
Parameters
- $listing_id : int
-
Listing ID.
- $new_status : string
-
New status.
- $old_status : string
-
Old status.
- $listing : object
-
Listing.
Return values
mixed —boot()
Bootstraps component properties.
protected
boot() : mixed
Return values
mixed —set_callbacks()
Sets the action and filter callbacks.
protected
final set_callbacks(array<string|int, mixed> $callbacks) : mixed
Parameters
- $callbacks : array<string|int, mixed>
-
Callback arguments.
Return values
mixed —set_property()
Sets a property value.
protected
final set_property(string $name, mixed $value[, string $prefix = '' ]) : mixed
Parameters
- $name : string
-
Property name.
- $value : mixed
-
Property value.
- $prefix : string = ''
-
Method prefix.