Creating custom Media Upload for WordPress
In a custom plugin I made, I had to add a custom media upload button in order to make sure only a single Video file is can be selected.
After doing some research, I discovered the handy & pretty undocumented component: wp.media
Just to make sure we’re on the same page, this is a JavaScript component which is a part of WordPress, used to handle Media upload (when writing a post).
If you're not sure how to add fields/buttons within post editing, take a look at the add_meta_boxes action, just so you can understand the context.
Let’s start with a simple upload button:Posted in TechnologyAutomate WordPress with WP CLI
How long does it take you to install a new WordPress website?
Do you have a collection of plugins you constantly use for every WordPress website you install? Does the same go for themes?
What about some dummy data? Do you have to add some posts and pages every time?Posted in TechnologyWP Remote - Manage multiple WordPress websites
For every developer building websites for small to medium sized businesses, there’s the classic dilemma of hosting:
Posted in TechnologyIonic Framework - AngularJS for Mobile Apps
I never thought I’d ever see a non native app working so smoothly.
Get your Android / iPhone and install Sworkit app on it.
Here are some pictures from the App:Posted in TechnologyWhy Facebook is making a PHP renaissance
I'm gonna be honest, I care about servers.Posted in Technology