Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Woo-shipping to use Install plugin with plugindata literal:directory #102

Closed
2 tasks
Tracked by #92
bph opened this issue Jan 29, 2025 · 0 comments · Fixed by #109
Closed
2 tasks
Tracked by #92

Update Woo-shipping to use Install plugin with plugindata literal:directory #102

bph opened this issue Jan 29, 2025 · 0 comments · Fixed by #109

Comments

@bph
Copy link
Collaborator

bph commented Jan 29, 2025

The current steps:

			"step": "mkdir",
			"path": "/wordpress/wp-content/plugins/woo-shipping-method"
		},
		{
			"step": "writeFile",
			"path": "/wordpress/wp-content/plugins/woo-shipping-method/woo-shipping-method.php",
			"data": {
				"resource": "url",
				"url": "https://raw.githubusercontent.com/calvinrodrigues500/blueprints/woo-shipping/blueprints/woo-shipping/woo-shipping-method/woo-shipping-method.php"
			}
		},
		{
			"step": "activatePlugin",
			"pluginName": "woo-shipping-method",
			"pluginPath": "woo-shipping-method/woo-shipping-method.php"
		}

Become:

{
  "step": "installPlugin",
  "pluginData": {
    "resource": "literal:directory",
    "name": "woo-shipping-method",
    "files": {
      "woo-shipping-method.php": {
        "resource": "url",
        "url": "https://raw.githubusercontent.com/calvinrodrigues500/blueprints/woo-shipping/blueprints/woo-shipping/woo-shipping-method/woo-shipping-method.php"
      }
    }
  },
  "options": {
    "activate": true
  }
}

Also

  • use shorthand for siteOptions and plugins
  • point to the wordpress/blueprints directory for the sample_products.xml file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant