{
	"landingPage": "/wp-admin/admin.php?page=altify-ai-settings",
	"preferredVersions": {
		"php": "8.0",
		"wp": "latest"
	},
	"phpExtensionBundles": [
		"kitchen-sink"
	],
	"steps": [
		{
			"step": "login",
			"username": "admin",
			"password": "password"
		},
		{
			"step": "installPlugin",
			"pluginZipFile": {
				"resource": "wordpress.org/plugins",
				"slug": "altify-ai-auto-alt-text-generator"
			},
			"options": {
				"activate": true
			}
		},
		{
			"step": "runPHP",
			"code": "<?php require_once 'wordpress/wp-load.php'; require_once ABSPATH . 'wp-admin/includes/image.php'; update_option('altify_ai_settings', array('openai_api_key' => '', 'model' => 'gpt-4o-mini', 'temperature' => 0.2, 'max_tokens' => 60, 'alt_language' => 'auto', 'alt_language_custom' => '', 'offline_mode' => 1, 'use_vision_analysis' => 0, 'max_alt_length' => 125, 'only_fill_empty_alt' => 1, 'overwrite_existing_alt' => 0, 'requests_per_minute' => 60, 'enable_woo_support' => 1, 'auto_generate_on_upload' => 1, 'upload_generation_mode' => 'offline_first', 'daily_scan_enabled' => 1, 'daily_scan_time' => '02:00', 'daily_scan_scope' => 'missing', 'daily_scan_max_images' => 50, 'daily_scan_mode' => 'offline_first'), false); $image = base64_decode('iVBORw0KGgoAAAANSUhEUgAAAEAAAAAwCAIAAAAuKetIAAAA+UlEQVR4nO3YMQ6DMAxAUf7/p7uqlQ4gaLFYgEFijMxC2lh6fHh8F4D+eB4AXgK8BHgJ8BLgJcBLgJcALwFeArwEeAnwEuAlwEuAlwAvAV4CvAR4CfAS4CXAS4CXAC8BXgK8BHgJ8BLgJcBLgJcALwFeArwEeAnwEuAlwEuAlwAvAV4CvAR4CfAS4CXAS4CXAC8BXgK8BHgJ8BLgJcBLgJcALwFeArwEeAnwEuAlwEuAlwAvAV4CvAR4CfAS4CXAS4CXAC8BXgK8BHgJ8BLgJcBLgJcALwFeArwEeAnwEuAlwEuAlwAvAV4CvAR4CfAS4CXAS4CXAC8BXgK8BHgJ8BIw9wKpB5bQ70HfYgAAAABJRU5ErkJggg=='); $items = array('coffee-shop-front-window.png' => 'Coffee shop front window', 'woocommerce-blue-running-shoes.png' => 'WooCommerce blue running shoes', 'wordpress-blog-featured-image.png' => 'WordPress blog featured image'); foreach ($items as $filename => $title) { if (get_page_by_title($title, OBJECT, 'attachment')) { continue; } $upload = wp_upload_bits($filename, null, $image); if (!empty($upload['error'])) { continue; } $attachment_id = wp_insert_attachment(array('post_mime_type' => 'image/png', 'post_title' => $title, 'post_content' => '', 'post_excerpt' => '', 'post_status' => 'inherit'), $upload['file']); if (is_wp_error($attachment_id) || !$attachment_id) { continue; } $metadata = wp_generate_attachment_metadata($attachment_id, $upload['file']); wp_update_attachment_metadata($attachment_id, $metadata); delete_post_meta($attachment_id, '_wp_attachment_image_alt'); } ?>"
		}
	]
}
