wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



_filter_do_shortcode_context › WordPress Function

Seit6.3.0
Veraltetn/v
_filter_do_shortcode_context ( Keine Parameter )
Zugriff:
  • private
Gibt zurück:
  • (string) The filtered context value for wp_get_attachment_images when doing shortcodes.
Definiert in:
Codex:

Filter the `wp_get_attachment_image_context` hook during shortcode rendering.

When wp_get_attachment_image() is called during shortcode rendering, we need to make clear that the context is a shortcode and not part of the theme's template rendering logic.


Quellcode

function _filter_do_shortcode_context() {
	return 'do_shortcode';
}