Create New Item
×
Item Type
File
Folder
Item Name
×
Search file in folder and subfolders...
File Manager
/
wp-content
/
plugins
/
anywhere-elementor-pro.2.15.5
/
includes
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Aepro; class Rules{ function get_post_type_conditions(){ $conditions = array(); $post_types = get_post_types( array( 'public' => true ), 'objects' ); foreach ( $post_types as $name => $post_type ) { $exluded_post_types = array('ae_global_templates'); if (in_array($name,$exluded_post_types)) { continue; } $conditions[$name.'_index'] = array( ); } return; echo '<pre>'; print_r($conditions); die(); } }