Menu

## ActionScheduler_AdminView_Deprecated
in package

ActionScheduler_AdminView_Deprecated.php : 11

Class ActionScheduler_AdminView_Deprecated

Store deprecated public functions previously found in the ActionScheduler_AdminView class. Keeps them out of the way of the main class.

##### Tags

codeCoverageIgnore

### Table of Contents

action_scheduler_post_type_args() : mixed
admin_notices() : string
  Convert an interval of seconds into a two part human friendly string.
bulk_actions() : array<string|int, mixed>
  Do not include the "Edit" action for the Scheduled Actions administration screen.
custom_orderby() : string
  Filter search queries to allow searching by Claim ID (i.e. post_password).
list_table_column_content() : mixed
  Print the content for our custom columns.
list_table_columns() : array<string|int, mixed>
  Completely customer the columns displayed on the Scheduled Actions administration screen.
list_table_sortable_columns() : array<string|int, mixed>
  Make our custom title & date columns use defaulting title & date sorting.
list_table_views() : array<string|int, mixed>
  Customise the post status related views displayed on the Scheduled Actions administration screen.
maybe_execute_action() : mixed
  Run an action when triggered from the Action Scheduler administration screen.
post_updated_messages() : array<string|int, mixed>
  Change messages when a scheduled action is updated.
row_actions() : array<string|int, mixed>
  Hide the inline "Edit" action for all 'scheduled-action' posts.
search_post_password() : string
  Filter search queries to allow searching by Claim ID (i.e. post_password).

### Methods

#### action_scheduler_post_type_args()

ActionScheduler_AdminView_Deprecated.php : 13
`public action_scheduler_post_type_args(mixed $args) : mixed`

##### Parameters

$args : mixed

##### Return values

mixed —

#### admin_notices()

ActionScheduler_AdminView_Deprecated.php : 111

Convert an interval of seconds into a two part human friendly string.

`public static admin_notices() : string`

The WordPress human_time_diff() function only calculates the time difference to one degree, meaning even if an action is 1 day and 11 hours away, it will display "1 day". This funciton goes one step further to display two degrees of accuracy.

Based on Crontrol::interval() function by Edward Dale: https://wordpress.org/plugins/wp-crontrol/

##### Return values

string —

A human friendly string representation of the interval.

#### bulk_actions()

ActionScheduler_AdminView_Deprecated.php : 37

Do not include the "Edit" action for the Scheduled Actions administration screen.

`public bulk_actions(array<string|int, mixed> $actions) : array<string|int, mixed>`

Hooked to the 'bulk_actions-edit-action-scheduler' filter.

##### Parameters

$actions : array<string|int, mixed>

  An associative array of actions which can be performed on the 'scheduled-action' post type.

##### Return values

array<string|int, mixed> —

$actions An associative array of actions which can be performed on the 'scheduled-action' post type.

#### custom_orderby()

ActionScheduler_AdminView_Deprecated.php : 122

Filter search queries to allow searching by Claim ID (i.e. post_password).

`public custom_orderby(string $orderby, WP_Query $query) : string`

##### Parameters

$orderby : string

  MySQL orderby string.

$query : WP_Query

  Instance of a WP_Query object

##### Return values

string —

MySQL orderby string.

#### list_table_column_content()

ActionScheduler_AdminView_Deprecated.php : 73

Print the content for our custom columns.

`public static list_table_column_content(string $column_name, int $post_id) : mixed`

##### Parameters

$column_name : string

  The key for the column for which we should output our content.

$post_id : int

  The ID of the 'scheduled-action' post for which this row relates.

##### Return values

mixed —

#### list_table_columns()

ActionScheduler_AdminView_Deprecated.php : 51

Completely customer the columns displayed on the Scheduled Actions administration screen.

`public list_table_columns(array<string|int, mixed> $columns) : array<string|int, mixed>`

Because we can't filter the content of the default title and date columns, we need to recreate our own custom columns for displaying those post fields. For the column content, @see self::list_table_column_content().

##### Parameters

$columns : array<string|int, mixed>

  An associative array of columns that are use for the table on the Scheduled Actions administration screen.

##### Return values

array<string|int, mixed> —

$columns An associative array of columns that are use for the table on the Scheduled Actions administration screen.

#### list_table_sortable_columns()

ActionScheduler_AdminView_Deprecated.php : 62

Make our custom title & date columns use defaulting title & date sorting.

`public static list_table_sortable_columns(array<string|int, mixed> $columns) : array<string|int, mixed>`

##### Parameters

$columns : array<string|int, mixed>

  An associative array of columns that can be used to sort the table on the Scheduled Actions administration screen.

##### Return values

array<string|int, mixed> —

$columns An associative array of columns that can be used to sort the table on the Scheduled Actions administration screen.

#### list_table_views()

ActionScheduler_AdminView_Deprecated.php : 24

Customise the post status related views displayed on the Scheduled Actions administration screen.

`public list_table_views(array<string|int, mixed> $views) : array<string|int, mixed>`

##### Parameters

$views : array<string|int, mixed>

  An associative array of views and view labels which can be used to filter the 'scheduled-action' posts displayed on the Scheduled Actions administration screen.

##### Return values

array<string|int, mixed> —

$views An associative array of views and view labels which can be used to filter the 'scheduled-action' posts displayed on the Scheduled Actions administration screen.

#### maybe_execute_action()

ActionScheduler_AdminView_Deprecated.php : 95

Run an action when triggered from the Action Scheduler administration screen.

`public static maybe_execute_action() : mixed`

##### Tags

codeCoverageIgnore

##### Return values

mixed —

#### post_updated_messages()

ActionScheduler_AdminView_Deprecated.php : 143

Change messages when a scheduled action is updated.

`public post_updated_messages(array<string|int, mixed> $messages) : array<string|int, mixed>`

##### Parameters

$messages : array<string|int, mixed>

##### Return values

array<string|int, mixed> —

#### row_actions()

ActionScheduler_AdminView_Deprecated.php : 85

Hide the inline "Edit" action for all 'scheduled-action' posts.

`public static row_actions(array<string|int, mixed> $actions, mixed $post) : array<string|int, mixed>`

Hooked to the 'post_row_actions' filter.

##### Parameters

$actions : array<string|int, mixed>

  An associative array of actions which can be performed on the 'scheduled-action' post type.

$post : mixed

##### Return values

array<string|int, mixed> —

$actions An associative array of actions which can be performed on the 'scheduled-action' post type.

#### search_post_password()

ActionScheduler_AdminView_Deprecated.php : 133

Filter search queries to allow searching by Claim ID (i.e. post_password).

`public search_post_password(string $search, WP_Query $query) : string`

##### Parameters

$search : string

  MySQL search string.

$query : WP_Query

  Instance of a WP_Query object

##### Return values

string —

MySQL search string.

## Search results