mirror of
https://ghproxy.net/https://github.com/abhijitb/helix.git
synced 2025-08-28 06:26:00 +08:00
Initial commit
This commit is contained in:
commit
153a4e9fd7
345 changed files with 359185 additions and 0 deletions
7
admin/disable-wp-admin.php
Normal file
7
admin/disable-wp-admin.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
add_action('admin_init', function () {
|
||||
$screen = get_current_screen();
|
||||
if (!is_admin() || $screen->id === 'toplevel_page_helix') return;
|
||||
wp_redirect(admin_url('admin.php?page=helix'));
|
||||
exit;
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue