Skip to content

Instantly share code, notes, and snippets.

@MjHead
Created June 4, 2018 13:21
Show Gist options
  • Save MjHead/c0e4f46c4667c6070e31f8691ca8f6c5 to your computer and use it in GitHub Desktop.
Save MjHead/c0e4f46c4667c6070e31f8691ca8f6c5 to your computer and use it in GitHub Desktop.
<?php
add_action( 'init', 'finscore_plugins_wizard_config', 9 );
add_action( 'init', 'finscore_data_importer_config', 9 );
/**
* Register Jet Plugins Wizards config
*/
function finscore_plugins_wizard_config() {
if ( ! is_admin() ) {
return;
}
if ( ! function_exists( 'jet_plugins_wizard_register_config' ) ) {
return;
}
include get_theme_file_path( 'tm-wizard-manifest.php' );
jet_plugins_wizard_register_config( array(
'license' => array( 'enabled' => false ),
'plugins' => $plugins,
'skins' => $skins,
'texts' => $texts,
) );
}
/**
* Register Jet Data Importer config
*/
function finscore_data_importer_config() {
if ( ! is_admin() ) {
return;
}
if ( ! function_exists( 'jet_data_importer_register_config' ) ) {
return;
}
include get_theme_file_path( 'cherry-import-manifest.php' );
jet_data_importer_register_config( $settings );
}
@MjHead
Copy link
Author

MjHead commented Jun 4, 2018

  • in tm-wizard-manifest.php
'jet-data-importer' => array(
	'name'   => esc_html__( 'Jet Data Importer', 'finscore' ),
	'source' => 'remote', // 'local', 'remote', 'wordpress' (default).
	'path'   => 'https://github.com/ZemezLab/jet-data-importer/archive/master.zip',
	'access' => 'base',
),
  • in inc/register-plugins.php
$plugins = array(
	array(
		'name'         => esc_html__( 'Jet Plugin Wizard', 'finscore' ),
		'slug'         => 'jet-plugin-wizard',
		'source'       => 'https://github.com/ZemezLab/jet-plugins-wizard/archive/master.zip',
		'external_url' => 'https://github.com/ZemezLab/jet-plugins-wizard',
	),
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment