The contact-form-7 wpcf7 admin menu change notice hook.
Published Date - July 22, 2023
$counts = apply_filters( 'wpcf7_admin_menu_change_notice',
array(
'wpcf7' => 0,
'wpcf7-new' => 0,
'wpcf7-integration' => 0,
)
);
$array
The following example is for adding a hook callback.
// define the wpcf7_admin_menu_change_notice callback
function custom_wpcf7_admin_menu_change_notice( $array ){
//custom code here
return $array
}
//add the action
add_filter('wpcf7_admin_menu_change_notice', 'custom_wpcf7_admin_menu_change_notice', 10, 1)
The filter is defined in the following location(s).
contact-form-7/admin/admin.php
$counts = apply_filters( 'wpcf7_admin_menu_change_notice',
array(
'wpcf7' => 0,
'wpcf7-new' => 0,
'wpcf7-integration' => 0,
)
);