WP Manifestindependent plugin directory
manifest / utilities / croco-marketing-kit-installer

Crocoblock Marketing Kit Installer

Crocoblock Marketing Kit Installer

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/zemezlab/croco-marketing-kit-installer/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Configuration example:

Plugins:


add_action( 'init', 'my_plugins_wizard_config', 0 );

function my_plugins_wizard_config() {

    if ( ! function_exists( 'croco_mki' ) ) {
        return;
    }

    croco_mki()->settings->register_external_config( array(
        'plugins' => array(
            'plugin-1' => array(
                'name'   => esc_html__( 'Plugin 1', 'croco-mki' ),
                'sourse' => 'wordpress', // 'git', 'local', 'remote', 'wordpress' (default).
                'path'   => false, // git repository, remote URL or local path.
            ),
            'plugin-2' => array(
                'name'   => esc_html__( 'Plugin 2', 'croco-mki' ),
                'sourse' => 'git', // 'git', 'local', 'remote', 'wordpress' (default).
                'path'   => false, // git repository, remote URL or local path.
            ),
        )
    ) );

    // Or from remote url
    croco_mki()->settings->register_external_config( array(
        'plugins' => array(
            'get_from' => URL which is returns JSON with plugins configuration,
        )
    ) );

}

Skins:


add_action( 'init', 'my_plugins_wizard_config', 0 );

function my_plugins_wizard_config() {

    if ( ! function_exists( 'croco_mki' ) ) {
        return;
    }

    croco_mki()->settings->register_external_config( array(
        'skins' => array(
            'skin-name' => array(
                'full'  => array(
                    'plugin-1',
                    'plugin-2',
                ),
                'lite'  => array(
                    'plugin-1',
                ),
                'demo'  => false,
                'thumb' => false,
                'name'  => esc_html__( 'Skin Name', 'croco-mki' ),
                'type'  => 'skin', // skin or model
            ),
        ),
    ) );

    // Or from remote url
    croco_mki()->settings->register_external_config( array(
        'skins' => array(
            'get_from' => URL which is returns JSON with skins configuration,
        )
    ) );

}