Tribe__Settings::get_url( $args = array() )

Returns the main admin settings URL.

Topics


Return #

(string)


Top ↑

Source #

File: src/Tribe/Settings.php

		public function get_url( array $args = array() ) {
			$defaults = array(
				'page' => $this->adminSlug,
				'parent' => self::$parent_page,
			);

			// Allow the link to be "changed" on the fly
			$args = wp_parse_args( $args, $defaults );

			$url = admin_url( $args['parent'] );

			// keep the resulting URL args clean
			unset( $args['parent'] );

			return apply_filters( 'tribe_settings_url', add_query_arg( $args, $url ), $args, $url );
		}