Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * This function sets the current default scope of the bookings table admin area if not saved by user.
- *
- * For information on how to paste/implement this snippet, see here - http://wp-events-plugin.com/tutorials/how-to-safely-add-php-code-to-wordpress/
- *
- * @param array $defaults
- *
- * @return array
- */
- function my_em_bookings_table_get_default_settings( $defaults ) {
- if ( empty( $defaults['filters']['scope'] ) ) {
- $defaults['filters']['scope'] = 'future';
- }
- return $defaults;
- }
- add_filter( 'em_bookings_table_get_default_settings', 'my_em_bookings_table_get_default_settings' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement