Skip to content

Commit

Permalink
Merge branch 'master' of github.com:joshcummingsdesign/wp-plugin-starter
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Cummings committed Jun 11, 2018
2 parents 981c90f + 37c98c2 commit cd69fe3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ An opinionated fork of the [WordPress Plugin Boilerplate](https://github.com/Dev

1. Use the [WP Plugin Generator](https://plugin.joshcummingsdesign.com)

2. Create settings fields by adding to the array in the render method in `admin/class-admin.php`.
* Create settings fields by adding to the array in the render method in `admin/class-admin.php`.

3. Get the data from your settings fields in the render method in `frontend/class-frontend.php` where it says controller.
* Get the data from your settings fields in the render method in `frontend/class-frontend.php` where it says controller.

4. Use that data in your default template found in `frontend/partials/view.php`.
* Use that data in your default template found in `frontend/partials/view.php`.

5. Users will have the ability to create their own template in a folder called `partials/plugin-name.php` in their theme. All the variables you declare in the controller will be accessible to them.
* Users will have the ability to create their own template in a folder called `partials/plugin-name.php` in their theme. All the variables you declare in the controller will be accessible to them.

6. Let's talk ajax for a moment. To use ajax in the admin, for example, create an `includes` folder and add a file called `class-admin-ajax.php` and use the `wp_ajax_` hook to process the data.
* [Here is an example of how to make an AJAX call in the admin.](https://github.com/joshcummingsdesign/wp-plugin-starter/issues/17)

## Without Generator

Expand Down

0 comments on commit cd69fe3

Please # to comment.