Edit File by line
/home/barbar84/www/wp-conte.../themes/Divi/includes/builder
File: main-modules.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Load all modules.
[2] Fix | Delete
*
[3] Fix | Delete
* @package Divi
[4] Fix | Delete
* @subpackage Builder
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
$et_builder_module_files = glob( ET_BUILDER_DIR . 'module/*.php' );
[8] Fix | Delete
$et_builder_module_types = glob( ET_BUILDER_DIR . 'module/type/*.php' );
[9] Fix | Delete
[10] Fix | Delete
if ( ! $et_builder_module_files ) {
[11] Fix | Delete
return;
[12] Fix | Delete
}
[13] Fix | Delete
[14] Fix | Delete
/**
[15] Fix | Delete
* Fires before the builder's module classes are loaded.
[16] Fix | Delete
*
[17] Fix | Delete
* @since 3.0.77
[18] Fix | Delete
*/
[19] Fix | Delete
do_action( 'et_builder_modules_load' );
[20] Fix | Delete
[21] Fix | Delete
foreach ( $et_builder_module_types as $module_type ) {
[22] Fix | Delete
require_once $module_type;
[23] Fix | Delete
}
[24] Fix | Delete
[25] Fix | Delete
foreach ( $et_builder_module_files as $module_file ) {
[26] Fix | Delete
require_once $module_file;
[27] Fix | Delete
}
[28] Fix | Delete
if ( et_is_woocommerce_plugin_active() ) {
[29] Fix | Delete
$et_builder_woocommerce_module_files = glob( ET_BUILDER_DIR . 'module/woocommerce/*.php' );
[30] Fix | Delete
[31] Fix | Delete
foreach ( $et_builder_woocommerce_module_files as $module_type ) {
[32] Fix | Delete
require_once $module_type;
[33] Fix | Delete
}
[34] Fix | Delete
}
[35] Fix | Delete
[36] Fix | Delete
/**
[37] Fix | Delete
* Fires after the builder's module classes are loaded.
[38] Fix | Delete
*
[39] Fix | Delete
* @since 3.0.77
[40] Fix | Delete
*/
[41] Fix | Delete
do_action( 'et_builder_modules_loaded' );
[42] Fix | Delete
[43] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function