Viewing 2 replies - 1 through 2 (of 2 total)
  • wpdude777

    (@wpdude777)

    the same question…

    i tried

    add_action( 'dslc_hook_unregister_modules', 'deregister_modules' );
    
    function deregister_modules() {
        dslc_unregister_module( 'DSLC_WooCommerce_Products' );
    }

    but it doesn’t work

    Plugin Author LiveComposer

    (@livecomposer)

    To hide a module, please go to WP Admin > Live Composer > Settings > Features Control and disable the Project module as shown on this screenshot: https://www.evernote.com/shard/s1/sh/8d7bdf1f-043f-41e5-853a-76d1a86b6140/b930af7e43240e6a

    You can also hide it via PHP like this:

    function yourname_dslc_disable_projectsmodule( ) {
    
    	dslc_unregister_module ('DSLC_Projects');
    
    }
    
     add_action( 'dslc_hook_unregister_modules', 'yourname_dslc_disable_projectsmodule' );
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Unregister default CPT & Modules’ is closed to new replies.