Disable a plugin from ever upgrading?

Hi @ripper234: Either 1.) edit the plugin header comment in the main plugin file and change the Version: value to something like 999, or 2.) move the plugin to the “Must Use” plugin directory: /wp-content/mu-plugins. Here’s an example from /wp-content/plugins/akismet/akismet.php of the plugin header comment for Akismet: /* Plugin Name: Akismet Plugin URI: http://akismet.com/ Description: … Read more

Anyway to convert a plugin to become a shortcode?

Sure, but it will take a little bit of hacking. I took a quick look at the plugin and what you want is in the function rax_social_media_share_show_option(). I would copy it and make a new function with just the part that builds up $button_code. That’s from line 315 to 516. Add a simple one-tag shortcode … Read more

How do I use add_action on custom widget?

when calling a function within a class you need to use $this prefixadd_action(‘wp_head’,array(&$this,’load_face’)); and you will need to populate the value of $sex public function load_face($instance) { $sex = $instance[‘sex’]; wp_enqueue_style(‘style’, WP_PLUGIN_URL . ‘/sample/’.$sex.’.css’, null, null, ‘screen’); }

How to set intervals in cron jobs?

You can do this via wp_cron by using the following, function more_reccurences() { return array( ‘sixhourly’ => array(‘interval’ => 21600, ‘display’ => ‘Every 6 hours’), ); } add_filter(‘cron_schedules’, ‘more_reccurences’); then find the function that does the autopost and call it by if ( !wp_next_scheduled(‘autopost_function’) ) { wp_schedule_event(time(), ‘sixhourly’, ‘autopost_function’); } If you want to use … Read more

WordPress as a data-store?

WordPress uses an XML-RPC interface in which you can define your own custom methods to it. And if server side coding is not your thing , then there are a few plugins that do most of the job for you: WordPress Web Service Extended API WP RESTful