original_string: 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;
  	}
code: 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;
  	}
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Get a metaplate s ID using its slug