Admin
in package
Admin class
Table of Contents
Methods
- __construct() : void
- Set up the admin page.
- check_file_actions() : void
- Check for file actions.
- menu() : void
- Register the admin menu item.
- render_admin_page() : void
- Renders the admin page.
Methods
__construct()
Set up the admin page.
public
__construct() : void
Hooks into the admin_init and admin_menu actions.
check_file_actions()
Check for file actions.
public
check_file_actions() : void
Hooks into the admin_init action and calls Files::delete() and Files::upload() to handle file actions.
menu()
Register the admin menu item.
public
menu() : void
Hooks into the admin_menu action and registers a new menu item under the Tools menu.
render_admin_page()
Renders the admin page.
public
render_admin_page() : void
Checks if the admin page file exists and includes it if it does. Otherwise, displays a notice.