\jb\adminColumns

Class Columns

Summary

Methods
Properties
Constants
__construct()
add_display_post_states()
display_jobs_meta_filters()
after_bulk_action_notice()
custom_bulk_action_handler()
remove_from_bulk_actions()
replace_list_table()
remove_quick_edit()
job_columns()
job_columns_content()
sortable_columns()
sort_columns()
filter_meta()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() : mixed

Columns constructor.

Returns

mixed

add_display_post_states()

add_display_post_states(array  $post_states, \WP_Post  $post) : array

Add a post display state for special Job Board pages in the page list table.

Parameters

array $post_states

An array of post display states.

\WP_Post $post

The current post object.

Returns

array

display_jobs_meta_filters()

display_jobs_meta_filters() : mixed

Output dropdowns for filters based on post meta.

Returns

mixed

after_bulk_action_notice()

after_bulk_action_notice() : mixed

Added admin notice after bulk approve or delete job posts

Returns

mixed

custom_bulk_action_handler()

custom_bulk_action_handler(string  $redirect_to, string  $doaction, array  $post_ids) : string

Handler for the bulk approve

Parameters

string $redirect_to
string $doaction
array $post_ids

Returns

string

remove_from_bulk_actions()

remove_from_bulk_actions(array  $actions) : array

Changed jobs bulk actions

Parameters

array $actions

Returns

array

replace_list_table()

replace_list_table( $views) : mixed

Extends WP_Posts_List_Table class via JB class to change list table view

Parameters

$views

Returns

mixed

remove_quick_edit()

remove_quick_edit(array  $actions, \WP_Post  $post) : array

Remove ability to job's quick edit

Parameters

array $actions
\WP_Post $post

Returns

array

job_columns()

job_columns(array  $columns) : array

Custom columns for JB Job

Parameters

array $columns

Returns

array

job_columns_content()

job_columns_content(string  $column_name, int  $id) : mixed

Display custom columns for Jobs

Parameters

string $column_name
int $id

Returns

mixed

sortable_columns()

sortable_columns(array  $columns) : array

Added sortable columns

Parameters

array $columns

Returns

array

sort_columns()

sort_columns(array  $vars) : array

Sorts the admin listing of Job Listings by updating the main query in the request.

Parameters

array $vars

Variables with sort arguments.

Returns

array

filter_meta()

filter_meta(\WP_Query  $wp) : mixed

Filters by meta fields.

Parameters

\WP_Query $wp

Returns

mixed