Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #58333, comment 7


Ignore:
Timestamp:
05/17/2023 12:48:09 AM (2 years ago)
Author:
andergmartins
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58333, comment 7

    initial v1  
    1414
    1515add_filter('render_block_data', function($parsed_block) {
     16    if (isset($parsed_block['innerContent'])) {
     17        foreach ($parsed_block['innerContent'] as &$innerContent) {
     18            $innerContent = do_shortcode($innerContent);
     19        }
     20    }
     21
    1622    if (isset($parsed_block['innerBlocks'])) {
    1723        foreach ($parsed_block['innerBlocks'] as $key => &$innerBlock) {