Astra_Menu::update_plugin_suggestions_tab_link()

Update plugin suggestions tab link.


Description


Return

(void)


Source

File: admin/includes/class-astra-menu.php

	public function update_plugin_suggestions_tab_link() {
		// phpcs:disable WordPress.Security.NonceVerification.Recommended
		if ( ! isset( $_GET['tab'] ) || 'astra-woo' !== $_GET['tab'] ) {
			return;
		}
		// phpcs:enable WordPress.Security.NonceVerification.Recommended

		$extensions_url = add_query_arg(
			array(
				'page' => self::$plugin_slug,
				'path' => 'woocommerce',
				'ref'  => 'plugins',
			),
			admin_url( 'admin.php' )
		);

		wp_safe_redirect( $extensions_url );
		exit;
	}

Changelog

Changelog
Version Description
4.7.3 Introduced.

User Contributed Notes

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