src/core/class-papi-core-conditional.php
protected function get_rule_slug( $rule, $property ) {
		$arr_reg = '/\[\d+\](\[\w+\])$/';
		$slug    = $property->get_slug();

		$page_type = papi_get_entry_type_by_meta_id();

		if ( $page_type instanceof Papi_Page_Type === false ) {
			return $rule->slug;
		}

		if ( preg_match( $arr_reg, $slug, $out ) ) {
			$slug     = str_replace( $out[1], '[' . unpapify( $rule->slug ) . ']', $slug );
			$property = $page_type->get_property( $slug );

			if ( papi_is_property( $property ) ) {
				return $slug;
			}
		}

		return $rule->slug;
	}
protected function get_rule_slug( $rule, $property ) {
		$arr_reg = '/\[\d+\](\[\w+\])$/';
		$slug    = $property->get_slug();

		$page_type = papi_get_entry_type_by_meta_id();

		if ( $page_type instanceof Papi_Page_Type === false ) {
			return $rule->slug;
		}

		if ( preg_match( $arr_reg, $slug, $out ) ) {
			$slug     = str_replace( $out[1], '[' . unpapify( $rule->slug ) . ']', $slug );
			$property = $page_type->get_property( $slug );

			if ( papi_is_property( $property ) ) {
				return $slug;
			}
		}

		return $rule->slug;
	}
Get rule slug.

@param  Papi_Core_Conditional_Rule $rule
@param  Papi_Core_Property $property

@return string