ActionScheduler_DBStore::get_placeholder_for_column()privateWC 1.0

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() WC 8.7.0

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 ) ? '%s' : '%d';
}