Wednesday, June 15, 2022
HomeWordPress DevelopmentHow one can make an admin plugin menu web page go full...

How one can make an admin plugin menu web page go full display screen?


I am constructing a plugin that accommodates a easy editor for a specific file format. It will solely be accessible within the admin menu’s for the plugin, no frontend entry. I’ve began trying on the precise editor format and it wants some extra actual property on the admin aspect, so I need to disguise the admin menu panels. It might even be cleaner and scale back any pointless muddle, just like the Gutenberg editor, or the customise theme web page. This is a number of choices that I am pondering of:

  • I might make the editor utterly full display screen and have a “again to WordPress” button to return to admin display screen
  • It might work equally effectively to cover the left admin menu and depart within the prime bar, though this could be a waste of area on cell.

Are there any in-built WordPress capabilities that disguise the admin menu? I feel my most popular approach so as to add the editor is to make use of the add_submenu_page() in order that it has it is personal web page within the menu. Nonetheless I do not know if there are any commonplace strategies to cover the default admin menu panels on a specific web page?

In any other case I might create the editor in it is personal standalone file that the consumer visits however then I will have so as to add numerous WordPress capabilities resembling checking that the consumer is logged in, and offering commonplace WordPress performance.

I need all of the code to be contained throughout the plugin, so I do not need to edit any pages in wp-admin.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments