wc_page_no_robots( array $robots )

Disable search engines indexing core, dynamic, cart/checkout pages.


Description Description

Uses "wp_robots" filter introduced in WP 5.7.


Parameters Parameters

$robots

(Required) Associative array of robots directives.


Top ↑

Return Return

(array) Filtered robots directives.


Top ↑

Source Source

File: includes/wc-template-functions.php



Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.