!74 optimization admin.service.design.module.content code

* optimization admin.service.design.module.content  code
This commit is contained in:
蒲硕 2023-04-07 06:45:44 +00:00 committed by Edward Yang
parent 6213226a99
commit 11626a73af
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ class DesignService
return self::handleRichText($content); return self::handleRichText($content);
} }
return hook_filter('admin.service.design.module.content', $content); return hook_filter('service.design.module.content', $content);
} }
/** /**

View File

@ -29,7 +29,7 @@ class Bootstrap
/** /**
* Get module content for home page and preview. * Get module content for home page and preview.
*/ */
add_hook_filter('admin.service.design.module.content', function ($data) { add_hook_filter('service.design.module.content', function ($data) {
$module = $data['module_code'] ?? ''; $module = $data['module_code'] ?? '';
if ($module == 'bestseller') { if ($module == 'bestseller') {