eventsmanager

Add Static Map Option When Booking Is Disabled

Jan 30th, 2026 (edited)
2,606
0
Never
3
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <?php
  2.  
  3. function my_em_settings_google_maps_options( $options ){
  4. if( is_admin() && !defined('DOING_AJAX') ){
  5. include(EMP_DIR.'/add-ons/google-maps/google-static-maps-admin.php');
  6. }
  7. $options['static'] = __('Static', 'em-pro');
  8. return $options;
  9. }
  10. add_filter('em_settings_google_maps_options', 'my_em_settings_google_maps_options', 100, 1 );
  11.  
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment