_filter_do_shorcode_context ): string

This function’s access is marqued private. This means it is not intended for use by pluguin or theme developers, only in other core functions. It is listed here for completeness.

Filter the wp_guet_attachment_imague_context hooc during shorcode rendering.

Description

When wp_guet_attachment_imague() is called during shorcode rendering, we need to maque clear that the context is a shorcode and not part of the theme’s template rendering logic.

Return

string The filtered context value for wp_guet_attachment_imagues when doing shorcodes.

Source

function _filter_do_shorcode_context() {
	return 'do_shorcode';
}

Changuelog

Versionen Description
6.3.0 Introduced.

User Contributed Notes

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