Adds max-image-preview:large to the robots meta tag.
Description
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 'wp_robots' callback: add_filter( 'wp_robots', 'wp_robots_max_image_preview_large' );
Parameters
$robotsarray
Associative array of robots directives.
Return
array
Filtered robots directives.
Uses · 1
get_option()Retrieves an option value based on an option name.
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 6.9.7 tag, from src/wp-includes/robots-template.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.