Code Monkey home page Code Monkey logo

wp-presets's Introduction

The Presets plugin allows you to fill your WordPress installation with previously defined settings in just a few seconds, allowing you to test it without the need to change the settings every time manually.

This plugin hasn't been developed to be working on production sites, and it's mostly for testing plugins that require you to change the settings all the time.

You can see more on the WordPress.org plugin page: https://wordpress.org/plugins/presets/

Feel free to contact us if you are looking to contrbute on the plugin and if you have questions about it: https://felipels.com/contact/

Do you like it and want to donate? We don't take donations currently, but you can help one of these projects instead as these are really important when it comes to making a better WordPress community:

wp-presets's People

Contributors

allysonsouza avatar foosantos avatar

Stargazers

 avatar  avatar

Watchers

 avatar

wp-presets's Issues

Redesign: Applying the same action multiple times

The goal with this redesign is to make it possible to apply the same action multiple times using different data (such as changing details for different users or different WooCommerce Products on the same preset).

  • Create repeater group field to apply the actions.
  • Move Notes feature to be part of the Presets core.
  • Turn the WordPress core into a module (instead of being part of a Presets core).

Add docs to set up localhost

Add which commands we need to run and what needs to be done for the dependencies to work as expected. Indicate the extension and tools that we are using on our default text editor.

Execute preset application

Create a page, or top bar button, or widget, to execute preset application on the site. The user must have a dropdown (or other interface component) to select which preset they want to apply.

PS: Maybe we should create a default entry on plugin activation, storing the woocommerce settings and customer meta on it.

WooCommerce Module

Register presets post types meta boxes to user fill the WooCommerce settings and user meta to be override on preset application.

WooCommerce Settings

Store Address

  • Address line 1
  • Address line 2
  • City
  • Country / State
  • Postcode / ZIP

Currency options

  • Currency
  • Currency position
  • Thousand separator
  • Decimal separator
  • Number of decimals

Customer meta

Billing address

  • First name
  • Last name
  • Company
  • Address line 1
  • Address line 2
  • City
  • Postcode / ZIP
  • Country / Region
  • State / County
  • Phone
  • Email address

Shipping address

  • First name
  • Last name
  • Company
  • Address line 1
  • Address line 2
  • City
  • Postcode / ZIP
  • Country / Region
  • State / County

Create 'Notes' module

This new module would allow you to add a text that would show up after the presets get applied.

The best way to do it might be adding this text on the notice that shows up with the action confirmation. Maybe we can use the site bio text instead of a new field/metabox. Both ways should work from what I see.

Export and Import tool

That is something that maybe we can use the native WP tool instead, but could be nice if we have a way of exporting/importing the presets.

Proposal: Rebrand from WooCommerce extension to WordPress generic plugin

I see that WooCommerce presets will indeed be the main feature for this specific plugin, but I believe that we actually have the opportunity here for having it more like a WP generic plugin instead of a Woo extension. Mostly because if we go more generic we could add other plugins presets or even more WP native settings that aren't related to WooCommerce.

With that in mind, the proposal would be changing everything from Woo specific to a WP generic format:

  • Name: From Presets for WooCommerce to WP Presets
  • Text Domain and Repository Name: From presets-for-woocommerce to wppresets
  • Prefix: From prewoo_ to wppresets_

These are some of the things that came to my mind, but it would require a full review in case we need to rename functions and such.

Load presets without redirect

When you apply the presets it currently redirects you to /wp-admin/edit.php?post_type=wppresets. It would make more sense to apply without this redirection.

Plugins Module

The goal would be creating a metabox with a field for activating a set of plugins. It would allow you to search and select the plugins that you want activated as part of the preset.

If this field is filled, all the other plugins would be deactivated except for WP Presets and the plugins added on the field.

This would allow you to activate a specific set of plugins when applying a specific preset.

Note: I don't think that a checkbox would work great here as the site could have an infinite amount of plugins. Maybe something like a CMB2 Field Type: Select2 could work great here using a Multi-value select box.

Add CMB2 via Composer

We are currently importing CMB2 files as part of the plugin. The goal would be to add using Composer.

Register WordPress presets meta box

Register presets post types meta boxes to user fill the WordPress settings and user meta to be override on preset application.

WordPress Settings

User

  • First Name
  • Last Name
  • Nickname
  • Website
  • Bio
  • Email

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.