fix: Use parse_request hook for /admin + Dashboard menu now active on Overview (root path)

This commit is contained in:
dwindown
2025-11-04 22:43:20 +07:00
parent 4f75a5b501
commit 4e1eb22c8f
2 changed files with 5 additions and 3 deletions

View File

@@ -15,8 +15,8 @@ class StandaloneAdmin {
* Initialize standalone admin handler
*/
public static function init() {
// Catch /admin requests early
add_action( 'template_redirect', [ __CLASS__, 'handle_admin_request' ], 1 );
// Catch /admin requests very early (before WordPress routing)
add_action( 'parse_request', [ __CLASS__, 'handle_admin_request' ], 1 );
}
/**