html block and shortcode block
-
I believe the Gutenberg html block will not support shortcode “as is or out of the box”.
However, can I securely add a custom plugin or use the “code snippet” plugin to change this function so that a widget_text can support a shortcode?
could this example be used as a custom plugin to add a filter to the functions file (and if so, is it written correctly):
<?php /* Plugin Name: Site Plugin for Custom WP Edits Description: Site specific code changes for customwpcedits.com */ /* Start Adding Functions Below this Line */ add_filter( 'widget_text', 'do_shortcode' ); /* Stop Adding Functions Below this Line */ ?>
Thank you for any help you can provide!
_Cindy
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘html block and shortcode block’ is closed to new replies.