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

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

add_action( 'wpcf7_admin_notices', 'wp_kama_wpcf7_admin_notices_action', 10, 3 );

/**
 * Function for `wpcf7_admin_notices` action-hook.
 * 
 * @param  $wpcf7-new            
 * @param  $wpcf7_current_action 
 * @param  $post                 
 *
 * @return void
 */
function wp_kama_wpcf7_admin_notices_action( $wpcf7-new, $wpcf7_current_action, $post ){

	// action...
}
$wpcf7-new
-
$wpcf7_current_action
-
$post
-

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

В файле: /admin/edit-contact-form.php
wpcf7_admin_notices
contact-form-7/admin/edit-contact-form.php 62-66
do_action( 'wpcf7_admin_notices',
	$post->initial() ? 'wpcf7-new' : 'wpcf7',
	wpcf7_current_action(),
	$post
);
contact-form-7/admin/admin.php 441-443
do_action( 'wpcf7_admin_notices',
	'wpcf7', wpcf7_current_action(), null
);
contact-form-7/admin/admin.php 518-520
do_action( 'wpcf7_admin_notices',
	'wpcf7-integration', wpcf7_current_action(), $service
);

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

contact-form-7/admin/admin.php 539
add_action( 'wpcf7_admin_notices', 'wpcf7_admin_updated_message', 10, 3 );