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


Top ↑

Return Return

(string) $content


Top ↑

Source Source

File: includes/gutenberg/lib/class-learndash-gutenberg-block.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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