Skip to content

kimcheung/wordpress-development-toolkit

 
 

Repository files navigation

WordPress Development Toolkit

Dash

Preview

  1. Navigate to https://wp.docker/wp-admin/ (ask for login in main channel).

  2. Git clone this plugin (should NOT be run in production environments on high-traffic servers where performance matters...) into the onecms-docker plugins dir.

  3. Navigate to Vanilla WP Network.

  4. Go to Plugins.

  5. Network activate plugin.

  6. Go back to https://wp.docker/wp-admin/.

  7. Open Dev Toolkit from Admin Menu link.

  8. Click "Start New Plugin".

How to fill out the New Plugin form:

Form

  1. Click Generate New Plugin. This will deliver a new zip file. Check that your namespace has been correctly generated.

  2. Follow these instructions: https://github.com/WordPress-Phoenix/abstract-plugin-base#installation

UPDATING /lib files

Lib files come from composer, but you need to ensure you run the command without the composer autoloader:

composer update --no-dev --no-autoloader

Offline Development Mode

The plugin uses the GitHub API to fetch the latest copy of the Abstract Plugin Base to include in the plugin. You can alternatively set:

define( 'WP_DEV_KIT_AIRPLANE_MODE', true )

to pull the ABP powering this plugin for internet-less development.

FILE PERMISSIONS

You may have 403 issues with these files if you unzip and put it into the plugins directory.

ls the directory and see if there's extended attributes on your plugin directory. If so, it will have an @ sign at the end of its permissions, ie: drwxr-xr-x@

To remove the extended attributes: xattr -rc <directory>

Apply required permissions: chmod 755 <file>

About

Generate WordPress Plugins using our Abstract Plugin Boilerplate

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 93.3%
  • CSS 4.5%
  • JavaScript 2.2%