Skip to content

WP Support Access 1.1.0

Latest

Choose a tag to compare

@oyatek oyatek released this 26 Oct 13:10

Configure the page opened after magic login when embedding the package in your own plugin:

$support = new SupportAccess([
    'redirect_to' => 'admin.php?page=my-plugin-settings',
]);
$support->register();

$grant['url'] is ready to share as returned by issue(). Following it signs the user in and opens the configured settings page. No URL helper or manual query parameter is required.

  • Supports wp-admin-relative paths and absolute URLs inside the current site's wp-admin, preserving query strings and fragments.
  • Defaults to the wp-admin dashboard when omitted; invalid, external or traversing destinations fall back to the admin root.
  • The destination is server configuration; incoming redirect_to query parameters do not override it. Existing links use the current configuration.
  • Compatible with existing grants and storage; no migration is required.

Use nlproduction/wp-support-access: ^1.1 through the GitHub VCS repository and run composer update nlproduction/wp-support-access. See README for the complete embedding and magic-link creation examples.

Validation includes a real embedding host plugin, actual HTTP magic-login redirects and access to its registered settings page, relative/absolute/query/fragment cases, unsafe-target fallback, and the existing WordPress/MySQL lifecycle, nonce, session, revocation, expiry, deactivation and multisite suite. Browser UI automation and third-party security/cache integrations are not covered.