acf/upgrade_500_field_group хук-событиеACF 1.0

action for 3rd party

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

add_action( 'acf/upgrade_500_field_group', 'wp_kama_acf_upgrade_500_field_group_action', 10, 2 );

/**
 * Function for `acf/upgrade_500_field_group` action-hook.
 * 
 * @param  $nfg 
 * @param  $ofg 
 *
 * @return void
 */
function wp_kama_acf_upgrade_500_field_group_action( $nfg, $ofg ){

	// action...
}
$nfg
-
$ofg
-

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

acf_upgrade_500_field_group()
acf/upgrade_500_field_group
acf/includes/upgrades.php 224
do_action( 'acf/upgrade_500_field_group', $nfg, $ofg );

Где используется хук в Advanced Custom Fields PRO

acf/includes/wpml.php 48
add_action( 'acf/upgrade_500_field_group', array( $this, 'upgrade_500_field_group' ), 10, 2 );