ActionScheduler_Abstract_Schema::update_table()
Update the schema for the given table
Method of the class: ActionScheduler_Abstract_Schema{}
Hooks from the method
Return
null
. Nothing.
Usage
// private - for code of main (parent) class only $result = $this->update_table( $table );
- $table(string) (required)
- The name of the table to update
ActionScheduler_Abstract_Schema::update_table() ActionScheduler Abstract Schema::update table code WC 7.5.1
private function update_table( $table ) { require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); $definition = $this->get_table_definition( $table ); if ( $definition ) { $updated = dbDelta( $definition ); foreach ( $updated as $updated_table => $update_description ) { if ( strpos( $update_description, 'Created table' ) === 0 ) { do_action( 'action_scheduler/created_table', $updated_table, $table ); } } } }