wpcf7_upgrade хук-событиеCF7 1.0

Использование

add_action( 'wpcf7_upgrade', 'wp_kama_wpcf7_upgrade_action', 10, 2 );

/**
 * Function for `wpcf7_upgrade` action-hook.
 * 
 * @param  $new_ver 
 * @param  $old_ver 
 *
 * @return void
 */
function wp_kama_wpcf7_upgrade_action( $new_ver, $old_ver ){

	// action...
}
$new_ver
-
$old_ver
-

Где вызывается хук

wpcf7_upgrade()
wpcf7_upgrade
contact-form-7/load.php 157
do_action( 'wpcf7_upgrade', $new_ver, $old_ver );

Где используется хук в Contact Form 7

contact-form-7/includes/upgrade.php 3
add_action( 'wpcf7_upgrade', 'wpcf7_convert_to_cpt', 10, 2 );
contact-form-7/includes/upgrade.php 57
add_action( 'wpcf7_upgrade', 'wpcf7_prepend_underscore', 10, 2 );
contact-form-7/modules/recaptcha/recaptcha.php 191
add_action( 'wpcf7_upgrade', 'wpcf7_upgrade_recaptcha_v2_v3', 10, 2 );