Is the export code correct?
-
Hello. Thank you for the wonderful plugin.
I can’t use English, so I’m using Google Translate to translate it into English.
By the way, as the title suggests, it seems that the “;” at the end of the return line is missing for the following code obtained by clicking Export from the setting screen of your plugin.
// functions.php
add_filter( ‘gbm_disabled_blocks’, function() {
return [‘core/freeform’]
});I modified the above code as follows and it worked fine.
// functions.php
add_filter( ‘gbm_disabled_blocks’, function() {
return [‘core/freeform’];
});It may only occur in my environment, so I would appreciate it if you could check it.
Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Is the export code correct?’ is closed to new replies.