richtabor/MerlinWP

I want ignore step install plugin and create child theme when import

Closed this issue · 1 comments

how to skip step install plugin and create child theme when importing. That is, select start and then enter

There is a filter on steps, dynamically created based on your theme name. I use Genesis and Merlin is for my child theme so I remove that step like this:

/**
 * Remove the child theme step.
 * This is for a Genesis child theme.
 *
 * @since   0.1.0
 *
 * @return  $array  The merlin import steps.
 */
add_filter( 'genesis_merlin_steps', function( $steps ) {
	unset( $steps['child'] );
	return $steps;
});