File "Base.php"
Full path: C:/Inetpub/vhosts/drshti.com/httpdocs/wp-content/plugins/depicter/app/src/Rules/Condition/CPT/Base.php
File
size: 484 B (484 B bytes)
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor &nnbsp; Back
<?php
namespace Depicter\Rules\Condition\CPT;
use Depicter\Rules\Condition\Base as BaseCondition;
class Base extends BaseCondition
{
/**
* @var \WP_Post_Type[]
*/
protected $availablePostTypes;
public function __construct(){
$this->availablePostTypes = get_post_types([
'public' => true,
'_builtin' => false
], 'object');
if ( !empty( $this->availablePostTypes['product'] ) ) {
unset( $this->availablePostTypes['product'] );
}
}
}