Skip to content

Commit

Permalink
Custom menu icon added
Browse files Browse the repository at this point in the history
  • Loading branch information
simongomes committed Apr 23, 2021
1 parent 84153a2 commit d28b916
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file added assets/images/menu_icon.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 includes/Admin/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function __construct( Settings $settings ) {
public function admin_menu() {
$parant_slug = 'ecourier-parcel-tracker';
$capability = 'manage_options';
add_menu_page( __( 'eCourier Tracker', 'ecourier-parcel-tracker' ), __( 'eCourier Tracker', 'ecourier-parcel-tracker' ), $capability, $parant_slug, null, 'dashicons-cart' );
add_menu_page( __( 'eCourier Tracker', 'ecourier-parcel-tracker' ), __( 'eCourier Tracker', 'ecourier-parcel-tracker' ), $capability, $parant_slug, null, EPT_ASSETS . '/images/menu_icon.png' );
add_submenu_page( $parant_slug, __( 'eCourier Tracker', 'ecourier-parcel-tracker' ), __( 'eCourier Tracker', 'ecourier-parcel-tracker' ), $capability, $parant_slug, array( $this->settings, 'load_settings_page' ) );
}

Expand Down
2 changes: 1 addition & 1 deletion parcel-tracker-ecourier.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function define_constants() {
}

/**
* Initialize plugin assets
* Initialize plugin assets.
*
* @return void
*/
Expand Down

0 comments on commit d28b916

Please sign in to comment.