ActionScheduler_DBStore::get_placeholder_for_column
Helper method to get $wpdb->prepare placeholder for a given column name.
Метод класса: ActionScheduler_DBStore{}
Хуков нет.
Возвращает
Строку. Placeholder to use for given column.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_placeholder_for_column( $column_name );
- $column_name(строка) (обязательный)
- Name of column in actions table.
Код ActionScheduler_DBStore::get_placeholder_for_column() ActionScheduler DBStore::get placeholder for column WC 10.8.1
private function get_placeholder_for_column( $column_name ) {
$string_columns = array(
'hook',
'status',
'scheduled_date_gmt',
'scheduled_date_local',
'args',
'schedule',
'last_attempt_gmt',
'last_attempt_local',
'extended_args',
);
return in_array( $column_name, $string_columns, true ) ? '%s' : '%d';
}