I have a code for twitter updates -
function twitit() { global $wp_query; $thePostName = $wp_query->post->post_name; echo '<div id="twitit"><a href="http://twitter.com/home?status=Currently reading '.$thePostName.' : '.get_permalink($post->ID).'" title="Click to send this page to Twitter!" target="_blank">Share on Twitter</a></div>'; } function widget_twitit($args) { extract($args); echo $before_widget; echo $before_title; echo $after_title; twitit(); echo $after_widget; } function twitit_init() { register_sidebar_widget(__('Twit It'), 'widget_twitit'); } add_action("plugins_loaded", "twitit_init");
Fatal error: function call undefined add_action () in C: \ xampp \ htdocs \ shizin \ twitter.php on line 30
source share