mmended to be used for sensitive pages. * * Typical usage is as a {@see 'wp_robots'} callback: * * add_filter( 'wp_robots', 'wp_robots_sensitive_page' ); * * @since 5.7.0 * * @param array $robots Associative array of robots directives. * @return array Filtered robots directives. */ function wp_robots_sensitive_page( array $robots ) { $robots['noindex'] = true; $robots['noarchive'] = true; return $robots; } /** * Adds `max-image-preview:large` to the robots meta tag. * * This directive tells web robots that large image previews are allowed to be * displayed, e.g. in search engines, unless the blog is marked as not being public. * * Typical usage is as a {@see 'wp_robots'} callback: * * add_filter( 'wp_robots', 'wp_robots_max_image_preview_large' ); * * @since 5.7.0 * * @param array $robots Associative array of robots directives. * @return array Filtered robots directives. */ function wp_robots_max_image_preview_large( array $robots ) { if ( get_option( 'blog_public' ) ) { $robots['max-image-preview'] = 'large'; } return $robots; }
Warning: Cannot modify header information - headers already sent by (output started at /home/belpow5/portal.belfuse.com/rail/wp-includes/robots-template.php:1) in /home/belpow5/portal.belfuse.com/rail/wp-content/themes/beltrain/functions.php on line 4

Warning: Cannot modify header information - headers already sent by (output started at /home/belpow5/portal.belfuse.com/rail/wp-includes/robots-template.php:1) in /home/belpow5/portal.belfuse.com/rail/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /home/belpow5/portal.belfuse.com/rail/wp-includes/robots-template.php:1) in /home/belpow5/portal.belfuse.com/rail/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /home/belpow5/portal.belfuse.com/rail/wp-includes/robots-template.php:1) in /home/belpow5/portal.belfuse.com/rail/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /home/belpow5/portal.belfuse.com/rail/wp-includes/robots-template.php:1) in /home/belpow5/portal.belfuse.com/rail/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /home/belpow5/portal.belfuse.com/rail/wp-includes/robots-template.php:1) in /home/belpow5/portal.belfuse.com/rail/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /home/belpow5/portal.belfuse.com/rail/wp-includes/robots-template.php:1) in /home/belpow5/portal.belfuse.com/rail/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /home/belpow5/portal.belfuse.com/rail/wp-includes/robots-template.php:1) in /home/belpow5/portal.belfuse.com/rail/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /home/belpow5/portal.belfuse.com/rail/wp-includes/robots-template.php:1) in /home/belpow5/portal.belfuse.com/rail/wp-includes/rest-api/class-wp-rest-server.php on line 1893
{"id":12,"date":"2021-02-23T16:44:52","date_gmt":"2021-02-23T16:44:52","guid":{"rendered":"http:\/\/beltrain.barn3s.com\/?page_id=12"},"modified":"2021-04-18T20:44:34","modified_gmt":"2021-04-18T20:44:34","slug":"front-page","status":"publish","type":"page","link":"https:\/\/portal.belfuse.com\/rail\/","title":{"rendered":"Front Page"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-12","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/portal.belfuse.com\/rail\/wp-json\/wp\/v2\/pages\/12","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/portal.belfuse.com\/rail\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/portal.belfuse.com\/rail\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/portal.belfuse.com\/rail\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/portal.belfuse.com\/rail\/wp-json\/wp\/v2\/comments?post=12"}],"version-history":[{"count":9,"href":"https:\/\/portal.belfuse.com\/rail\/wp-json\/wp\/v2\/pages\/12\/revisions"}],"predecessor-version":[{"id":285,"href":"https:\/\/portal.belfuse.com\/rail\/wp-json\/wp\/v2\/pages\/12\/revisions\/285"}],"wp:attachment":[{"href":"https:\/\/portal.belfuse.com\/rail\/wp-json\/wp\/v2\/media?parent=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}