public static function get_metaplate_id_by_slug( $slug, $metaplates = null ) {
		if ( is_null( $metaplates ) ) {
			$metaplates = self::get_registry();
		}

		if ( is_array( $metaplates ) ) {
			$search = wp_list_pluck( $metaplates, 'slug' );
			return array_search( $slug, $search );

		}

		return false;
	}
public static function get_metaplate_id_by_slug( $slug, $metaplates = null ) {
		if ( is_null( $metaplates ) ) {
			$metaplates = self::get_registry();
		}

		if ( is_array( $metaplates ) ) {
			$search = wp_list_pluck( $metaplates, 'slug' );
			return array_search( $slug, $search );

		}

		return false;
	}
public static function get_metaplate_id_by_slug ( $ slug , $ metaplates = null ) { if ( is_null ( $ metaplates ) ) { $ metaplates = self :: get_registry ( ) ; } if ( is_array ( $ metaplates ) ) { $ search = wp_list_pluck ( $ metaplates , 'slug' ) ; return array_search ( $ slug , $ search ) ; } return false ; }
Get a metaplate's ID using its slug

@param string $slug The metaplate's slug.
@param null|array $metaplates Optional. The metaplate registry to look in.

@return bool|array
Get a metaplate s ID using its slug