OK, so it’s technically impossible to extend WP_Post. Big deal. Still, I’m thinking a lot about how I might go about extending WP_Post for my own purposes; and I’m experimenting with classes that “kind of” extend WP_Post, because the class is not going to be final forever. In a Trac ticket from 2013, we have […]
WP Members Plugin: How to filter the role list
The Members WordPress plugin by Justin Tadlock is an incredible tool for revealing the underbelly of user roles and permissions on your WordPress site. Until I discovered this plugin, my concept of user roles was completely tied up in my code. But with Members, we get an intuitive and comprehensive UI for managing the various […]
How To Style Draggable Elements To Indicate Draggability
Last time, we saw how quickly we can get a minimal working setup in place with draggable elements and jQuery UI. Here, we’ll talk about how to style our draggable elements. In particular, we want to let users know that the draggable Things are actually draggable, using only visual cues. Here is what our styled […]
Draggable Elements With jQuery UI
I set out to find the bare minimum requirements for making draggable elements with jQuery UI. It turns out the minimum is actually very little! The above code gives us the following: So did it work? Yes, it did! Don’t believe me? Go ahead and drag Things 1, 2, and 3 around above. You probably […]
Gravity Forms: How To Pre-Populate Fields
In general with HTML forms, assigning a pre-specified value to a field input is pretty straightforward. For example, the one line of HTML below: will produce the following input box. Note that “My Value” is already pre-populated as the field input value, since the HTML contains the attribute value=”My Value”. Of course, this is just […]
Gravity Forms: Add Extra Email Addresses To Notifications
With Gravity Forms, we can quickly set an email address in the admin panel, determining who gets notified when a new form entry is submitted. We can even set up multiple notifications with different content going to different recipients. This is all available from within the WordPress admin panel and requires no code to set […]
How I Learned Code
One day as I sat wondering whether I could possibly become an Actuary or Statistical Analyst of some sort, I suddenly became curious to see if I could learn how to work with computer code and develop that into a career. After all, I had worked with HTML code in high school. How much could have changed on the internet in 12 years?