Last updated 2 years ago
Was this helpful?
This block type renders a .
menu - the name of a menu to render;
attributes - the menu HTML attributes.
The code below renders the user account menu with an extra my-custom-class CSS class.
my-custom-class
echo ( new HivePress\Blocks\Menu( [ 'menu' => 'user_account', 'attributes' => [ 'class' => [ 'my-custom-class' ], ], ] ) )->render();