Skip to content
This repository has been archived by the owner on Dec 17, 2020. It is now read-only.

Commit

Permalink
#3 Uncomment menu action and add icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
rspraymond committed Oct 17, 2016
1 parent cdab573 commit cb19621
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wp-discord/admin/class-wp-discord-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function __construct($plugin_name, $version)
public function admin_menu()
{
$display_name = 'WP Discord';
add_menu_page($display_name, $display_name, 'manage_options', $this->plugin_name, array($this, 'admin_options'), 'dashicons-admin-generic');
add_menu_page($display_name, $display_name, 'manage_options', $this->plugin_name, array($this, 'admin_options'), plugin_dir_url(__FILE__) . '../assets/icon-16x16.png');
}

/**
Expand Down
Binary file added wp-discord/assets/icon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion wp-discord/includes/class-wp-discord.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private function define_admin_hooks()

$this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_styles');
$this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts');
//COMING SOON $this->loader->add_action('admin_menu', $plugin_admin, 'admin_menu');
$this->loader->add_action('admin_menu', $plugin_admin, 'admin_menu');
$this->loader->add_action('widgets_init', $plugin_admin, 'register_widgets');
$this->loader->add_action('init', $plugin_admin, 'register_shortcodes');

Expand Down

1 comment on commit cb19621

@rspraymond
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually applies to #4

Please sign in to comment.