| @@ -1,8 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -if ( ! defined('WPINC') ) { | |
| 4 | - wp_die(); | |
| 3 | +if ( ! defined('ABSPATH') ) { | |
| 4 | + exit; | |
| 5 | 5 | } |
| 6 | 6 | |
| 7 | 7 | ?><div class="wpc-filters-set-settings-wrapper"> |
| 8 | 8 | <table class="wpc-form-fields-table"> |
| @@ -8,18 +8,22 @@ | ||
| 8 | 8 | <table class="wpc-form-fields-table"> |
| 9 | 9 | <?php |
| 10 | 10 | $set_settings_fields = flrt_get_set_settings_fields( $post->ID ); |
| 11 | 11 | |
| 12 | - // Allow to manipulate fields before show them | |
| 12 | + // Allows you to manipulate fields before show them | |
| 13 | 13 | do_action_ref_array( 'wpc_before_filter_set_settings_fields', array( &$set_settings_fields ) ); |
| 14 | 14 | |
| 15 | 15 | foreach ( $set_settings_fields as $key => $attributes ) { |
| 16 | 16 | |
| 17 | - flrt_include_admin_view('filter-field', array( | |
| 18 | - 'field_key' => $key, | |
| 19 | - 'attributes' => $attributes | |
| 20 | - ) | |
| 21 | - ); | |
| 17 | + if( isset( $attributes['skip_view'] ) && $attributes['skip_view'] ){ | |
| 18 | + do_action_ref_array( 'wpc_cycle_filter_set_settings_fields', array( &$set_settings_fields ) ); | |
| 19 | + }else{ | |
| 20 | + flrt_include_admin_view('filter-field', array( | |
| 21 | + 'field_key' => $key, | |
| 22 | + 'attributes' => $attributes | |
| 23 | + ) | |
| 24 | + ); | |
| 25 | + } | |
| 22 | 26 | } |
| 23 | 27 | ?> |
| 24 | 28 | </table> |
| 25 | 29 | </div> |