// Another method of checking whether a dependency exists // Thanks http://helpforwp.com/plugins/wp-stock-ticker/wp-stock-ticker-documentation/#static1 if(method_exists('WPStockTickerPro', 's_ticker_display')) { echo do_shortcode('[s_static_display]'); }
// Also see: // class_exists // filter_exists // action_exists