Missing presentation->robots (incorrect doc example)
-
The example on https://developer.yoast.com/customization/apis/metadata-api/#manipulate-the-meta-robots-tag-output doesn’t seem to work in reality.
$presentation->robots
is not an array but actually nonexistent on the$presentation
object. It’s therefornull
. I tried this on a fresh 6.4.1 WP install with the latest version of Yoast 21.5- Indexing was not disabled
- The robots meta tag is output as it should be when disabling the filter.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Missing presentation->robots (incorrect doc example)’ is closed to new replies.