Astra_Migrate_Header_Components::configure()

Configure the ability.


Description


Return

(void)


Source

File: inc/abilities/customizer/header/class-astra-migrate-header-components.php

	public function configure() {
		$this->id          = 'astra/update-header-component';
		$this->category    = 'astra';
		$this->label       = __( 'Migrate Astra Header Component IDs', 'astra' );
		$this->description = __( 'Scans and fixes incorrect header builder component IDs. Automatically converts variations like menu_secondary to menu-2, social_1 to social-icons-1, etc. Use this when header components are not showing in customizer/frontend due to incorrect IDs.', 'astra' );

		$this->meta = array(
			'tool_type'   => 'write',
			'constraints' => array(
				'usage_hints' => array(
					'when_to_use'    => 'Use this when header components appear in database but not in customizer/frontend. Common issue: menu_secondary instead of menu-2.',
					'what_it_fixes'  => 'Normalizes all component IDs to Astra format: menu-1, menu-2, social-icons-1, button-1, html-1, widget-1, etc.',
					'automatic'      => 'Automatically scans both desktop and mobile layouts and fixes all incorrect IDs in one operation.',
					'safe_operation' => 'Only changes IDs that need normalization. Does not modify layout structure or remove components.',
					'cache_clear'    => 'After migration, customizer cache is automatically cleared to show changes immediately.',
				),
			),
		);
	}

User Contributed Notes

You must log in before being able to contribute a note or feedback.