File "rules.php"

Full path: /home/kosmetik/public_html/wp-content/plugins/anywhere-elementor-pro.2.15.5/includes/rules.php
File size: 572 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor   Back

<?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();
    }
}