You appear to be a bot. Output may be restricted
Description
Store the demarkation id in WP options.
Usage
$int = ActionScheduler_HybridStore::set_demarkation_id( $id );
Parameters
- $id
- ( int ) optional – The ID to set as the demarkation point between the two stores Leave null to use the next ID from the WP posts table.
Returns
int The new ID.
Source
File name: woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php
Lines:
1 to 13 of 13
private function set_demarkation_id( $id = null ) { if ( empty( $id ) ) { /** @var \wpdb $wpdb */ global $wpdb; $id = (int) $wpdb->get_var( "SELECT MAX(ID) FROM $wpdb->posts" ); $id ++; } update_option( self::DEMARKATION_OPTION, $id ); return $id; }