[wp-trac] [WordPress Trac] #51179: dashicons-money-alt not working
WordPress Trac
noreply at wordpress.org
Fri Aug 28 16:23:01 UTC 2020
#51179: dashicons-money-alt not working
-------------------------------------+-----------------------------
Reporter: solutionsketan | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.3.2
Severity: normal | Keywords: needs-patch
Focuses: ui, css, administration |
-------------------------------------+-----------------------------
Hi there,
I am a WordPress developer working for a project in which I am willing to
create a setting page on WP dashboard.
I want to use the dashicon specified in the summary but when I pass it as
parameter in add_menu_page function it does not show any icon.
Please let me know about this.
Here is the code that I am trying:
{{{
add_action('admin_menu', 'registerSettingMenu', 100);
/**
* Callback of admin_menu hook to register the setting menu
*/
function registerSettingMenu()
{
add_menu_page(
__('Donation Settings', 'rmhc-donation'),
__('Donation Settings', 'rmhc-donation'),
'manage_options',
'rmhc-donation-stngs',
array($this, 'donationSettingsCallback'),
'dashicons-money-alt'
);
}
/**
* Callback of add_menu_page to render the settings page.
*/
function donationSettingsCallback()
{
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51179>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list