ActionScheduler_DBStore::get_claim_id()
Return an action's claim ID, as stored in the claim_id column.
Метод класса: ActionScheduler_DBStore{}
Хуков нет.
Возвращает
Разное
.
Использование
$ActionScheduler_DBStore = new ActionScheduler_DBStore(); $ActionScheduler_DBStore->get_claim_id( $action_id );
- $action_id(строка) (обязательный)
- Action ID.
Код ActionScheduler_DBStore::get_claim_id() ActionScheduler DBStore::get claim id WC 8.7.0
public function get_claim_id( $action_id ) { /** @var \wpdb $wpdb */ global $wpdb; $sql = "SELECT claim_id FROM {$wpdb->actionscheduler_actions} WHERE action_id=%d"; $sql = $wpdb->prepare( $sql, $action_id ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared return (int) $wpdb->get_var( $sql ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared }