ActionScheduler_ListTable::column_args
Serializes the argument of an action to render it in a human friendly format.
Method of the class: ActionScheduler_ListTable{}
Hooks from the method
Returns
String.
Usage
$ActionScheduler_ListTable = new ActionScheduler_ListTable(); $ActionScheduler_ListTable->column_args( $row );
- $row(array) (required)
- The array representation of the current row of the table.
ActionScheduler_ListTable::column_args() ActionScheduler ListTable::column args code WC 10.3.5
public function column_args( array $row ) {
if ( empty( $row['args'] ) ) {
return apply_filters( 'action_scheduler_list_table_column_args', '', $row );
}
$row_html = '<ul>';
foreach ( $row['args'] as $key => $value ) {
$row_html .= sprintf( '<li><code>%s => %s</code></li>', esc_html( var_export( $key, true ) ), esc_html( var_export( $value, true ) ) ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_export
}
$row_html .= '</ul>';
return apply_filters( 'action_scheduler_list_table_column_args', $row_html, $row );
}