January 2015

WordPress add Dashicons for new menu

When we add new menu page in WordPress in our custom plugins or theme functions we use the ‘add_menu_page‘ page function which can option to pass icon path of that menu.Here is the code snippet of the default example: add_action(‘admin_menu’, ‘members_downloads_menu’); function members_downloads_menu() { if (is_admin()){ add_menu_page(‘Members Downloads Options’, ‘Members Downlods’, ‘manage_options’, ‘members-downloads’,’members_downloads_page’,plugins_url(‘your-plugin-folder/images/icon.png’), 80 ); …

WordPress add Dashicons for new menu Read More »