public function get_field_slug() {
		if ( preg_match( '/\[|\]/', $this->slug ) ) {
			$slug = preg_replace( '/\[|\]/', '.', $this->slug );
			$slug = str_replace( '..', '.', $slug );
			return substr( $slug, 0, -1 );
		}

		return $this->slug;
	}
public function get_field_slug() {
		if ( preg_match( '/\[|\]/', $this->slug ) ) {
			$slug = preg_replace( '/\[|\]/', '.', $this->slug );
			$slug = str_replace( '..', '.', $slug );
			return substr( $slug, 0, -1 );
		}

		return $this->slug;
	}
public function get_field_slug ( ) { if ( preg_match ( '/\[|\]/' , $ this -> slug ) ) { $ slug = preg_replace ( '/\[|\]/' , '.' , $ this -> slug ) ; $ slug = str_replace ( '..' , '.' , $ slug ) ; return substr ( $ slug , 0 , - 1 ) ; } return $ this -> slug ; }
Get field slug.

@return string
Get field slug .