first commit

This commit is contained in:
2024-11-10 21:08:49 +01:00
commit 0d932ce5ee
14455 changed files with 2567501 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<?php
/**
* Implement ET_Builder_Post_Query_TBItems to query `et_tb_item`.
*
* @since ??
*
* @package Builder
*/
/**
* Class to handle `et_tb_item` query.
*
* Think of this class as WP_Query for ET_TB_ITEM_POST_TYPE.
*/
class ET_Builder_Post_Query_TBItems extends ET_Core_Post_Query {
/**
* {@inheritDoc}
*
* @param string $taxonomy The taxonomy name.
* @param array $terms Taxonomy terms.
* @param bool $negate Whether to negate this tax query.
*/
protected function _add_tax_query( $taxonomy, $terms, $negate = null ) {
$args = self::$_->array_flatten( $terms );
$negate = $this->_reset_negate();
if ( ! $args ) {
return $this;
}
parent::_add_tax_query( $taxonomy, $args, $negate );
return $this;
}
}