Register google jquery gets overwritten by plugin

First: do not de-register core-bundled scripts in order to register some arbitrary version of those scripts. WordPress currently (at time of writing) comes bundled with jQuery 1.7.1. When WordPress 3.4 comes out next month, that version will be (IIRC) 1.8.x. Core, Themes, and other Plugins will all rightfully expect the core-bundled version of jQuery to … Read more

Simply poll & Events Calendar plugins clashing

It might be due to the position on the admin sidebar in Simply Poll. Go to simply-poll/lib/admin.php and on line 40 remove the , 6 from the end of the add_menu_page() function and see what happens. I’ll have a look at the other plugin as well to check what they are doing. Simply Poll developer

Can plugin2 uninstall plugin1 at the very beginning of plugin2’s installation?

On the register_activation_hook() function of the new plugin use the function deactivate_plugins() (or deactivate_plugin_before_upgrade()) and deactivate the older plugin and also delete the data with delete_option. If you will also delete the files, then use the function uninstall_plugin($plugin); maybe delete_plugins( $plugins, $redirect=”” )

Turning on output buffering in a wordpress plugin

Although I realise this is probably not the right way to go about it, I managed to turn on output buffering using the following code in my plugin: add_action(‘init’, ‘rsq_buffering’); function rsq_buffering() { ob_start(); } I probably should be doing any session stuff from within the init hook instead of just all over the place.

WordPress Plugins Don’t Automatically Update

I have several installations of wordpress on my vps… You need to look in your error logs and find out if it is a permissions problem or something else. Everything will be in the logs on a VPS, unlike cheaper shared hosting. Google “error logs” for the OS of your VPS.

convert more tag to shortcode

Try adding this to your plugin file (or functions.php). You’ll use [my_more] as the shortcode for this example. function wpse50449_more_func( $atts ){ return “\n<!– more –>\n”; } add_shortcode( ‘my_more’, ‘wpse50449_more_func’ );

Default taxonomy template in plugin, override in theme

This is what I ended up using (for all those interested): function override_tax_template($template){ // is a specific custom taxonomy being shown? $taxonomy_array = array(‘tax1′,’tax2’); foreach ($taxonomy_array as $taxonomy_single) { if ( is_tax($taxonomy_single) ) { if(file_exists(trailingslashit(get_stylesheet_directory()) . ‘tax-template-directory/taxonomy-‘.$taxonomy_single.’.php’)) { $template = trailingslashit(get_stylesheet_directory()) . ‘tax-template-directory/taxonomy-‘.$taxonomy_single.’.php’; } else { $template = BASE_PLUGIN_DIR . ‘includes/tax-template-directory/taxonomy-‘.$taxonomy_single.’.php’; } break; } } … Read more