apply_filters( 'um_adm_action_custom_update_notice', $messages, $update ) → {array}
Filters the custom admin notice after um_adm_action.
Parameters:
Name | Type | Description |
---|---|---|
$messages |
array | Admin notice messages. |
$update |
string | Update action key. |
- Since:
- 2.6.8
- Source:
Returns:
Admin notice messages.
- Type
- array
Example
function my_um_adm_action_custom_update_notice( $messages, $update ) {
if ( 'custom_update_key' === $update ) {
$messages[0]['content'] = 'custom notice text';
}
return $messages;
}
add_filter( 'um_adm_action_custom_update_notice', 'my_um_adm_action_custom_update_notice', 10, 2 );