How to deactivate my plugin upon deactivation of NextGen

You’ve got to actually check is_plugin_active. I would use something more like this, shamelessly stolen and modified from here: register_activation_hook( __FILE__, ‘dependentplugin_activate’ ); function dependentplugin_activate() { require_once( ABSPATH . ‘/wp-admin/includes/plugin.php’ ); if ( is_plugin_active( ‘nextgen-gallery/nggallery.php’ ) ) { require_once ( WP_PLUGIN_DIR . ‘/nextgen-gallery/nggallery.php’ ); } else { // deactivate dependent plugin deactivate_plugins( __FILE__); // throw … Read more

How can I modify the header of RSS feed items?

this value comes from the template tag the_author(). You can also filter this. But it is important, that you check, that the filter only work on the feeds; see the follow example at the check for is_feed(). After this i change the autor name only, if the string has the value ‘name_xyz’; here is the … Read more

Need to return shortcode text instead of the output

Another way is to use a shortcode to display shortcodes 🙂 add_shortcode(‘SH’,’shortcode_display_handler’); function shortcode_display_handler($atts = array(),$content=null){ $content = str_replace(“[“,”[”,$content); $content = str_replace(“]”,”]”,$content); return $content; } Usage: [SH] [/SH]