action_scheduler_before_schema_update

ACTION woocommerce\packages\action-scheduler\classes\abstracts\ActionScheduler_Abstract_Schema.php (ligne 68) github
Allow custom processing before updating a table schema.

Paramètres

Entrée :
$table, $this->db_version
Sortie :
@param string $table Name of table being updated.
@param string $db_version Existing version of the table being updated.

Utilisation

// Ajouter une fonction au hook action 'action_scheduler_before_schema_update'
add_action('action_scheduler_before_schema_update', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($table, $this->db_version) {
    // Votre code ici
    error_log('Hook action_scheduler_before_schema_update déclenché');
}

Actualités

Chargement des actualités...