Filter: gutenbricks_bricks_theme_name

GutenBricks plugin is initiated only when the Bricks theme is activated under the folder name bricks. If your theme folder name is different, GutenBricks will not start. This filter allows users to override that theme name so that GutenBricks still works.

add_filter('gutenbricks_bricks_theme_name', function ($original_folder_name) {
  // Here the original_folder_name is 'bricks'
  // But my bricks theme is under a folder name 'bricks-awesome'
  return 'bricks-awesome'

Last updated