',
esc_attr( sanitize_key( $notice ) )
);
echo wp_kses_post( $text );
printf(
'%s',
esc_url( $action_url ),
esc_html( $action_label )
);
printf(
'%s',
esc_url( wp_nonce_url( add_query_arg( $meta_key, $notice ), $meta_key ) ),
esc_html__( 'Dismiss', 'code-snippets' )
);
echo '
';
}
/**
* Render a badge for a snippet type in the nav tabs.
*
* @param string $type_name Identifier of the snippet type.
*/
private static function render_snippet_tab_badge( string $type_name ) {
if ( 'all' !== $type_name ) {
printf( '