/** * Include plugins in /symbionts * * @since 2.5.1 */ function include_plugins() { $symbionts = array('custom-metadata/custom_metadata.php' => 1, 'disable-comments/disable-comments.php' => 1, 'search-regex/search-regex.php' => 1, 'mce-anchor-button/mce-anchor-button.php' => 1, 'mce-table-buttons/mce_table_buttons.php' => 1, 'mce-superscript-subscript-buttons/mce-superscript-subscript-buttons.php' => 1); $symbionts = filter_plugins($symbionts); // include plugins if (!empty($symbionts)) { foreach ($symbionts as $key => $val) { require_once PB_PLUGIN_DIR . 'symbionts/' . $key; } } }
/** * Include plugins in /vendor * * @since 2.5.1 */ function include_plugins() { $plugins = array('custom-metadata/custom_metadata.php' => 1, 'pressbooks-latex/pb-latex.php' => 1); $plugins = filter_plugins($plugins); if (!empty($plugins)) { foreach ($plugins as $key => $val) { require_once PB_PLUGIN_DIR . 'symbionts/' . $key; } } // Disable comments if (true == disable_comments()) { require_once PB_PLUGIN_DIR . 'symbionts/disable-comments-mu/disable-comments-mu.php'; } }