Tribe__Autoloader::get_prefix_by_slug( string $slug )

Get the registered prefix by slug


Parameters

$slug

(string) (Required) Unique slug for registered prefix.


Top ↑

Return

(false|string) Either the prefix registered to the unique slug or false if not found.


Top ↑

Source

File: src/Tribe/Autoloader.php

			public function get_prefix_by_slug( $slug ) {
				$prefix = false;

				if ( isset( $this->prefix_slugs[ $slug ] ) ) {
					$prefix = $this->prefix_slugs[ $slug ];
				}

				return $prefix;
			}