Local from Flywheel Saves Database SQL Files When Site is Stopped

I was recently following some troubleshooting steps for Local and removed the docker component that Local automatically sets up via an app called VirtualBox, which it installs during setup.

Right after I did this I realized that I may have also deleted all of the databases for my sites.  Turns out I did.

NOTE: If you remove a site in Local as part of testing, I suggest you do not delete the associated files as well (ie app/public etc).

Luckily, Local has a nice feature that automatically backs up all of your database tables whenever you stop a site.

Since Local stalled and wasn’t stopped properly, I did loose a little bit of data, but not too much 🙂

Screen Shot 2017-05-17 at 2.15.18 AM.png

Thanks Clay and the Local folks for helping me figure this out (check out the forum post).

If you’ve been liking Local, but also notice it freezes up or doesn’t work sometimes, I feel you 🙂

I haven’t done this in the past, but I may look into a DB backup solution for local dev just in case of things like this (my files I save via Dropbox).

LearnDash and WordPress Groups

Add User to LearnDash Group When Orders a WooCommerce Product

LearnDash and WordPress Groups

I love the LearnDash LMS for WordPress.  I use it over at javascriptforwp.com and not only is it powerful out of the box and with plugins, but it’s hooks allow for even more.

One thing LearnDash cannot do out of the box is sell access to Groups via WooCommerce.

A Group in LearnDash, amongst other things, let’s you assign a group of courses to a group of users.  You can add courses over time and those users will automatically get access.

For my JavaScript for WordPress Master Course I wanted to switch from one gigantic course (hundreds of lessons) to a bunch of smaller courses that I could also sell individually.

To do this I setup a new Group in LearnDash called “Master Course” and added my new smaller courses to it.  I also created a new WooCommerce Virtual Product called “Master Course.”

Then I simply added this code to my functions.php:

Here is what this code does:

  • Hook into WooCommerce when an order is marked complete
  • Checks to see if that order includes my Master Course WooCommerce product
  • If so, it adds that user who purchased the product to my LearnDash group

It’s pretty simple and shows the power of hooks in WordPress.

To customize this for your own use you would have to add the Group and Product IDs to the corresponding variables on line 5 and 7.

One thing this doesn’t do is remove a person from a group if they cancel or are refunded the order, since this is something I wanted to do manually.  However, you could easily do this by hooking into the woocommerce_order_status_cancelled or woocommerce_order_status_refunded hooks.

A big thanks to Justin from LearnDash and Ernest from UncannyOwl, who is working on a plugin that will also allow for this functionality.

Learning HTML, CSS, PHP, jQuery & Hosting via WordPress

A few years ago I spoke at at WordCamp Phoenix about how you can learn Web Design and Web Development via WordPress.

This holds as true today as it did then.

A lot of WordPress Pros learn design and development through WordPress

Check Out My Talk

Have You Learned Design & Development From WordPress?

Chances are if you are reading or watching this you have learned some of these technologies through your work with WordPress.

If so, would love to hear about it!

 

Learn JavaScript & The WP REST API Deeply at a Day of REST

A Day of REST Boston 2017 - The WordPress REST API and JavaScript Conference

A Day of REST is Coming to the States!!!

The Day of REST Conference kicked off last year in the UK with an incredible line-up of speakers, all using the API in production project and a few core contributors to the WP REST API.

In 2017 The Day of REST Conference is coming to the US for the first time and I encourage you all to attend!  Here are 3 good reasons:

  1. This is THE Conference on the WP REST API (and JS for WP)
  2. This year they are adding 6 AMAZING Workshops
  3. I believe supporting A Day of REST supports WP API adoption

Hurry before the Early Bird Discount Expires!

 

I Mean, Just Check Out These Workshops

Just attending the one day of talks is worth the entire trip.  I attended last year in the UK when I still had a lot of questions about the API and using it with JavaScript.  I got all of my questions answered and a lot more.  

In addition to the day of talks, they are adding two days of workshops (one day before and one day after).

a-day-of-rest-workshops

The Workshops Include:

  • Full Day – JavaScript w Zac Gordon (That’s Me!)
  • Full Day – React w Wes Bos (Teacher crush!)
  • Half Day – Webpack w K. Adam White (Webpack goes deep..)
  • Half Day – WP API Authentication w Joe Hoyle (Worth the entire trip)
  • Half Day – Backbone & WP API w Adam Silverstein (It’s already in Core!)
  • Half Day – WooCommerce API w Brian Richards (The API is for Woo Too 🙂

The pricing for the conference and the workshops depends on what you want to attend, but I can guarantee that coming out here will up your JS and WP API game.  You want to be in the cutting edge of WP Dev, right?  This is the community and event to plug into.  Keep reading to hear why I feel this so strongly.

 

Why We Should Support The Day of REST Conference

ready10ywp

I have been honored to work a bit with the folks from Human Made who put on the Day of REST and Week of REST events.  But Human Made is also a VIP WP Partner, they build production apps and sites with the REST API, and they contribute time to Core API development.  I really doubt the WordPress REST API would be where it is today without their support.  On top of that they’re amazing Human Beings.

Anyone who gets into running conferences knows you don’t do it for the money.  I do not know all the inner workings of A Day of REST, but I do know that putting on a quality event like this takes a lot of human and financial resources.  Again, this is on top of the amazing Core Development and professional implementations they already do as a company.

One of the easiest ways you can show your support for a wider adoption of the WP REST API is to drum up attention for and attend A Day of REST.

This is why I think it comes to us in the community who want to see more from the WP REST API to support these events.  Even if you cannot fly to Boston in March, buy a ticket just to show your support for what A Day of REST and Human Made are doing to help further education around the WP REST API.

20160906_094644

My hope is that if A Day of REST goes well, Human Made will continue to offer it and also bring A Week of REST to the States.  And let me tell you what… that is gonna be one heck of a “You Want To Be Here” Event! (Check out my 2016 Week of REST Review)

So, please, talk to your employers and partners and see if you can make it to A Day of REST on March 9th (Workshops on 8 and 10th) in Boston.  This is the one conference out there solely focused on the future of API Driven WordPress Development.

I hope to see you there!!!

Learn more about a Day of REST Boston on March 8-10th, 2017.

 

Oh! And as an added bonus the conference site is running on React and the WP REST API 😉

5 Big Announcements from the JavaScript for WordPress Master Course – 1 Year In!!!

1 Year Anniversary and A Lot of People to Thank!

 

Last weekend at WordCamp US 2016 marked my 1 year anniversary of working on the JavaScript for WordPress Master Course and the 1 year anniversary of us as a community having Learning JavaScript Deeply as a homework assignment.

Thank you to all of those I mention (and forget to) in the video above.  I would not be here still doing this course one year later without the support of the WordPress Community.  Thank you all.

An Announcement About the Cost of the Course

 

Starting on January 1st the cost of the course will go up from $397 to $697.  In this video above I talk about the important reasons for this and mention a way you can reserve your seat now to lock in the $397 price for the next enrollment period 🙂

Announcing the JS for WP Scholarship Fund!!!

 

Starting on January 1st we will be accepting nominations and applications for the new JS for WP Scholarship Fund.  Please take a listen to the reasoning for it and some of the details.

If you know someone (yourself included) who might want to sit on the Board of Directors to help nominate and select students, please contact me and let me know.

The Three Open Enrollment Periods for 2017

 

Last year, I announced enrollment dates late and planned them randomly.  This year is different 🙂  Check out the video to find out all three enrollment dates.

And, learn how to get one of the sweet JS for WP Bandanas!!!

Part 4 of the Course is FREE and Getting a Major Revamp

 

In this video I talk about the 4 Parts of the JavaScript for WordPress Master Course to put Part 4 of the course on Real World Projects into perspective.  Part 4 of the course became available for Free after the end of the last enrollment and is getting a major overhaul in the coming months.

If you have JavaScript or API related WordPress projects, please contact me and let me know!  I would love to feature them as a resource for the community.  Please watch above for details..

Slides from WordCamp Baltimore – A Year of Learning (and Teaching) JavaScript Deeply

Today I had the chance to speak at WordCamp Baltimore 2016 about my last year of learning and teaching JavaScript Deeply.

I had a great time preparing the slides and getting everything ready and hopefully it all went well 🙂  I’ll add up the video once its on WordPress.tv

 

Learn How I Built the JavaScript for WordPress Master Course and Teaching Site on the “How I Built It Podcast”

“If you’re looking to setup an online course just grab this podcast!”

I love hanging and chatting Joe Casabona.  Naturally, I was excited when I found out he wanted to chat with me on his How I Built it Podcast about how I built my JavaScript for WordPress Master Course.

A lot of folks have asked me content related questions about the course, but this is the first time I really go in depth about actually building the course, from researching content, to building a team, to picking an LMS, all the plugins I used and several of the snags I hit.

It was really fun to talk about all of this and I share a lot of information.  If you’re interested in how things are built and the behind the scenes technologies, I would definitely recommend listening to this episode.

Students may particularly appreciate what has gone into the course.

Episode 9: Zac Gordon & Javascript for WordPress