Plugin Options not being output

Basically, you’re not using the correct option name. In your viptips_settings_init() function, you use the name viptips_settings as the database option name when registering the setting: // The syntax is: register_setting( ‘<settings group name>’, ‘<database option name>’ ) register_setting( ‘pluginPage’, ‘viptips_settings’ ); So WordPress will use that viptips_settings when saving the option (i.e. update_option( ‘viptips_settings’, … Read more

Batch update of WordPress Plugins

You need to also back up the database in addition to the plugins folder. Not only is information stored in the database about which versions of which plugins are installed, an updated plugin itself may make changes to its settings which is stores in the database. Without backing up both the database AND the plugins … Read more

How do I disable an update for a specific plugin?

function AS_disable_plugin_updates( $value ) { //create an array of plugins you want to exclude from updates ( string composed by folder/main_file.php) $pluginsNotUpdatable = [ ‘plugin1/plugin.php’, ‘plugin2/plugin2.php’ ]; if ( isset($value) && is_object($value) ) { foreach ($pluginsNotUpdatable as $plugin) { if ( isset( $value->response[$plugin] ) ) { unset( $value->response[$plugin] ); } } } return $value; } … Read more

What is @Action in WordPress?

This is called php annotations. Many of them are built-in via a standard called phpdoc (like @var), and they are used by the interpreter or the static tools (also by humans for a more structured comment). There is another usecase for these annotations, and it’s to run some code – probably using reflections (which usually … Read more

Know which plugin is calling JS in wp_head()?

Plugins and themes tend to use wp_enqueue_script() to queue up scripts for the <head /> of your theme. I would rarely advise this, but since you only need to do it temporarily, you could modify WordPress core and run a debug backtrace for every call to this function. In wp-includes/functions.wp-scripts.php, drop the following code inside … Read more

Redirect to another page using contact form 7? [closed]

Redirect to another page using contact form 7? [closed]

Jquery NoConflict Problem

Try and call method `prettyPhoto’ when DOM is ready, replace your code: jQuery.noConflict() jQuery(function(){ jQuery(“a[rel^=’prettyPhoto’]”).prettyPhoto(); }); with this: jQuery(document).ready(function($) { $(“a[rel^=’prettyPhoto’]”).prettyPhoto(); }); Also ‘Paid Downloads’ plugins enqueues latest version of jQuery used by WordPress it’s 1.6.1, it would be better if you register same version of jQuery from Google-CDN as WordPress does

Add script into front from my plugin

Use wp_enqueue_scripts and admin_enqueue_scripts actions to enqueue your scripts: // for front end add_action(‘wp_enqueue_scripts’, array(&$this, ‘load_my_scripts’)); // for back end add_action(‘admin_enqueue_scripts’, array(&$this, ‘load_my_scripts’)); Also pay attention that it is bad practice to load your scripts on all pages of the site. Load your script only if need be: // … function load_my_scripts() { if ( … Read more