Skip to main content

has_shortcode_recursive

Function has_shortcode_recursive 

Source
pub fn has_shortcode_recursive(doc: &Document, kind: ShortcodeKind) -> bool
Expand description

True if any block in the document is a shortcode of the given kind (recursive — descends into callouts, blockquotes, list items).

Replaces the project_has_inline_subscribe filesystem scan once shortcodes migrate to typed AST in Phase B.