How can I run AJAX on a button click event?
Update: I managed to get the AJAX working, but not in the click event. I updated the question to match this.
Update: I managed to get the AJAX working, but not in the click event. I updated the question to match this.
When developing a plugin, is there a way to automatically determine the minimum version of WordPress that’s required to run it? I want to make sure that the Requires header is accurate, but manually checking every time I call a new core function is tedious and error-prone.
I’ve done this with posts, but I can’t find the proper way to reference the category table’s columns.
I am now developing a wordpress site that will be something like a directory. People will be able to submit walkthroughs, advanced reviews, as well as cheat codes for games. We were going to make a different form for each page, but now we’ve decided that one form with a drop down will be just fine.
I have data in the wp_options table currently stored as a multi-dimensional array (profile_element_order):
I recently wrote my first WP plugin that adds a shortcode for embedding a custom jquery image gallery into posts. It’s primarily just dumps a good chunk of HTML into the post, along with javascript necessary for initialization.
I am working on developing a plugin, and I am trying to add a line of text to the bottom of the page, I see there are two actions that seems reasonable, wp_footer() and get_footer(). wp_footer sounds like it may more suited towards code that needs to go at the very end of the page (like JavaScript files), but get_footer didn’t have any documentation on its wordpress codex page. Which should I use for something like this?
What is the best way to get an experienced WordPress developer take a look at my plugin and give constructive criticisms? I have written code to solve some of my questions on this site, and I think they could be useful to others too. However, since they would by my first public WordPress plugins, and I have seen many not-so-great examples in the public WordPress directory, I would like to know “where I stand”, and how I can improve my plugins. I have read the list of best practices, and still need to apply some of them, but I would also like an answer to the more general question “Is this a good way to solve this problem?”
I’m working on a custom data table to display in the WordPress dashboard. The table populates from a database table I built in a plugin.
Hypothetical example but real world applicability (for someone learning, like me).