Articles of plugins

difference between add_options and register_setting

I am confused. Want to save data for my plugin. There are people who use add_options and there are others who use register_settings. My question is What is difference between add_options and register_setting?

Plugin Unit Test for Table and Option Creation

I’ve started to incorporate unit testing in my build. I have a class that creates a database table and a database version option. I have no idea how to test if the table and option are being created. Here’s the class class Safety_links_Create_Database { public function __construct() { $this->create_db(); } /** * Get the databse […]

Query Posts by Custom Field 'Price'

I’d like to display all posts within a given price range. For example: When a user inputs 100 and 1000 (in two separate form fields) – my site will display all posts that have a custom field called price that has a numeric value between 100 and 1000. Found this under the documentation for WP […]

How can I make an Ajax login form work with FORCE_SSL_ADMIN enabled?

I’m working on a site that requires an https secured admin area and a secure front-end area as well where private information will be shown. My preference for user login is an Ajax-enabled widget that can be shown on every page of the site, but I’m not able to make it work when passing submitted […]

What plugin can I use to create a list / slideshow of featured images?

I’m looking for a plugin that will allow the user to upload files, maybe 4-10 that can be used on the homepage as part of a slideshow. I can code the slideshow part myself, if necessary, but the thing I’m interested in is a way for the user to select / upload the photos. It […]

Is there a standard for naming plugin versions

My business partner and I are developing several plugins and we want to know if there is a standard for the version number of a plugin when there are updates, i.e., version 1.0, version 1.2, version 1.2.3, etc? Thanks for any advise.

What causes the “Are you sure you want to do this?” error with plugins?

This is an odd case I’ve run into. A site I’ve had for years started throwing this “error” when i try to make certain backend changes. It seems pervasive – If i try to install, update, activate or deactivate any plugin. I can still look at the list of plugins and view their settings, generally. […]

Removing the “Your backup folder MIGHT be visible to the public” Message Generated by the WP-DBManager Plugin

I upgraded a client’s WordPress from 2.8 to 3.0.1 and after upgrading I am now receiving this message in the dashboard: Your backup folder MIGHT be visible to the public To correct this issue, move the .htaccess file from wp-content/plugins/wp-dbmanager to /home/usearname/public_html/wp-content/backup-db My client’s WordPress in installed in the /wordpress/ sub-directory, i.e.: http://domain-name.com/wordpress/ This was […]

How to call a plugin function from index.php

I have created a function in my plugin myplugin with the name foo, how to call it from the frontend? e.g. index.php?

How can I make default jquery version of WordPress “async”?

In WordPress can I make default jquery “async”? Also can I change default version (1.12.x) of Jquery to the new one (2.2.x)? Below is the reason why I`m asking: