LLMS_Helper_Admin_Add_Ons::filter_get_current_section( string $section )

Change the default section from “All” to “Mine” but only if license keys have been saved


Parameters Parameters

$section

(string) (Required) Section slug.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: libraries/lifterlms-helper/includes/class-llms-helper-admin-add-ons.php

	public function filter_get_current_section( $section ) {

		if ( 'all' === $section && empty( $_GET['section'] ) && $this->has_keys() ) {
			return 'mine';
		}

		return $section;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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