Change default bookings admin table defaults

Nov 9th, 2017
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * Changes the default booking status being searched for on booking admin tables, and can be extended to change other default features.
  4.  * For installation instructions, see here -
  5.  * @param EM_Bookings_Table $EM_Bookings_Table
  6.  */
  7. function my_custom_booking_table_status_default( $EM_Bookings_Table ){
  8.     if( !isset($_REQUEST['status']) ) $EM_Bookings_Table->status = 'confirmed';
  9. }
  10. add_action('em_bookings_table_header', 'my_custom_booking_table_status_default', 10, 1);
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add to your ad blocker whitelist or disable your adblocking software.