Astra_Theme_Extension::redirect_addon_listing_page()

Redirect to astra welcome page if visited old Astra Addon Listing page


Description


Return

(void)


Source

File: classes/class-astra-theme-extension.php

		public function redirect_addon_listing_page() {

			global $pagenow;
			/* Check current admin page. */

			if ( 'themes.php' == $pagenow && isset( $_GET['action'] ) && 'addons' == $_GET['action'] ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
				wp_safe_redirect( admin_url( '/themes.php?page=astra' ), 301 );
				exit;
			}
		}

Changelog

Changelog
Version Description
1.2.1 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.