Inpsyde\MultilingualPress\Module\CustomPostTypeSupport\ServiceProvider::register_module PHP Method

register_module() public method

Registers the module at the module manager.
Since: 3.0.0
public register_module ( Inpsyde\MultilingualPress\Module\ModuleManager $module_manager ) : boolean
$module_manager Inpsyde\MultilingualPress\Module\ModuleManager Module manager object.
return boolean Whether or not the module was registerd successfully AND has been activated.
    public function register_module(ModuleManager $module_manager)
    {
        return $module_manager->register_module(new Module('custom_post_type_support', ['description' => __('Enable translation of custom post types. Creates a second settings box below this. The post types must be activated for the whole network or on the main site.', 'multilingual-press'), 'name' => __('Custom Post Type Support', 'multilingual-press'), 'active' => false]));
    }