Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions admin/class-activation-redirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@
*
* Handles redirecting to the welcome page after plugin activation.
*
* @since 1.35.0
* @since 1.36.0
*/
class Activation_Redirect {

/**
* The page slug for the welcome page.
*
* @since 1.35.0
* @since 1.36.0
* @var string
*/
const WELCOME_PAGE_SLUG = 'accessibility_checker';

/**
* Initialize the activation redirect.
*
* @since 1.35.0
* @since 1.36.0
*/
public function init(): void {
add_action( 'admin_init', [ $this, 'maybe_redirect_to_welcome' ] );
Expand All @@ -40,7 +40,7 @@ public function init(): void {
/**
* Get the welcome page URL.
*
* @since 1.35.0
* @since 1.36.0
* @return string The URL to the welcome page.
*/
public function get_welcome_page_url(): string {
Expand All @@ -57,7 +57,7 @@ public function get_welcome_page_url(): string {
* - We're not activating multiple plugins at once
* - User has permission to access the welcome page
*
* @since 1.35.0
* @since 1.36.0
* @return void
*/
public function maybe_redirect_to_welcome(): void {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading