Loading...'; } /* * Property Hive Viewings Awaiting Applicant Feedback Widget */ public function viewings_awaiting_applicant_feedback_widget() { echo '
Loading...
'; } /* * Property Hive My Upcoming Appointments Widget */ public function my_upcoming_appointments_widget() { echo '
Loading...
'; } /* * Property Hive Upcoming & Overdue Key Dates Widget */ public function upcoming_overdue_key_dates_widget() { echo '
Loading...
'; } public function hide_non_property_hive_widgets() { $current_user = wp_get_current_user(); $user_id = $current_user->ID; $crm_only_mode = get_user_meta( $user_id, 'crm_only_mode', TRUE ); if ( $crm_only_mode == '1' ) { global $wp_meta_boxes; if ( isset($wp_meta_boxes['dashboard']['normal']['core']) ) { foreach ( $wp_meta_boxes['dashboard']['normal']['core'] as $key => $widget ) { if ( strpos($key, 'property') === false && strpos($key, 'hive') === false ) { unset($wp_meta_boxes['dashboard']['normal']['core'][$key]); } } } if ( isset($wp_meta_boxes['dashboard']['side']['core']) ) { foreach ( $wp_meta_boxes['dashboard']['side']['core'] as $key => $widget ) { if ( strpos($key, 'property') === false && strpos($key, 'hive') === false ) { unset($wp_meta_boxes['dashboard']['side']['core'][$key]); } } } } } } endif; return new PH_Admin_Dashboard();