LearnDash_Gutenberg_Block::convert_block_markers_to_shortcode( string $content = '', string $block_slug = '', string $shortcode_slug = '', boolean $self_closing = false )
Utility function to parse the WP Block content looking for specific token patterns.
Description Description
Parameters Parameters
- $content
-
(Optional) Full page/post content to be searched.
Default value: ''
- $block_slug
-
(Optional) This is the block token pattern to search for. Ex: ld-user-meta, ld-visitor, ld-profile.
Default value: ''
- $shortcode_slug
-
(Optional) This is the actual shortcode token to be used.
Default value: ''
- $self_closing
-
(Optional) true if not an innerblock.
Default value: false
Return Return
(string) $content
Source Source
File: includes/gutenberg/lib/class-learndash-gutenberg-block.php
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |