<?php namespace MasterPopups\Includes;

//$xbox = xbox_get('settings-master-popups');
//$value = $xbox->get_field_value( 'disable-user-roles' );
//d($value);

// $popup = new Popup();
// $options = $popup->get_options();
// $value = $popup->option( 'name' );


//$popup = new Popup();
//$options = $popup->get_options();
//$value = $popup->option( 'name' );
//d($options['mpp_desktop-elements']);Undefined index
//d($options);

//$keyword = xbox_get_field_value( 'popup-editor-master-popups', 'mpp_display-by-post-content', '');
//d($keyword);
//$desktop_elements = xbox_get_field_value( 'popup-editor-master-popups', 'mpp_desktop-elements', array());
//d($desktop_elements);





//add_action('xbox_before_save_fields', __NAMESPACE__ .'\\test_xbox_before_save_fields', 10, 3);
//function test_xbox_before_save_fields( $data, $object_id, $xbox ){
//    //mpp_debug( '$object_id', $object_id);
//    //mpp_debug( '$_POST', $data);
//    //mpp_debug( '$xbox', $xbox);
//    //exit;
//}

//add_filter('xbox_filter_field_value_mpp_e-regex-validation', __NAMESPACE__ .'\\xbox_filter_field_value', 10);
//function xbox_filter_field_value( $value ){
//    return $value;
//}



