How remove the item "License" from Dashboard ?

Toje

Member
Sep 10, 2020
113
15
18
re.png


Hello together,

how i remove the Item "License" from Plugin ?


Best regards
 

Taekiwz

Active member
Trusted Uploader
Aug 27, 2019
105
170
43
Use snippet in functions.php, so you can update plugin and dont need to remove "license" menu again.

Maybe this:


PHP:
add_action( 'admin_init', 'wpse_136058_remove_menu_pages' );
function wpse_136058_remove_menu_pages() {
remove_menu_page( 'PLUGIN-LICENSE-SLUG' );
}
 

Toje

Member
Sep 10, 2020
113
15
18

guguk

Well-known member
Jul 19, 2019
1,150
828
113
Ottoman Empire

Use snippet in functions.php, so you can update plugin and dont need to remove "license" menu again.

Maybe this:


PHP:
add_action( 'admin_init', 'wpse_136058_remove_menu_pages' );
function wpse_136058_remove_menu_pages() {
remove_menu_page( 'PLUGIN-LICENSE-SLUG' );
}
I dont know it's works but this way is safest method rather than removing lines in plugin file. You need to find only "licence page slug"
 
  • Like
Reactions: Toje and Taekiwz

TassieNZ

Premium Uploader and Sometimes Hacker!
Jan 17, 2019
9,017
19,812
120
New Zealand
exact and i write in my first Posting, that i search it in the Plugin = D
But why? By doing it in the Plugin it means that anytime you update the Plugin, it needs doing again.

The other way (if it works) would be permanent! :)
 
  • Like
Reactions: Taekiwz

Forum statistics

Threads
69,206
Messages
908,333
Members
236,836
Latest member
torinouq

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu