!74 optimization admin.service.design.module.content code
* optimization admin.service.design.module.content code
This commit is contained in:
parent
6213226a99
commit
11626a73af
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -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') {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue