/** * Shortcode for generating the action of the activity */ function bp_media_shortcode_action($atts) { extract(shortcode_atts(array('id' => '0'), $atts)); try { $media = new BP_Media_Host_Wordpress($id); return $media->get_media_activity_action(); } catch (Exception $e) { return 'Media not present'; } }
/** * Shortcode for generating the action of the activity */ function bp_media_shortcode_action($atts) { extract(shortcode_atts(array('id' => '0'), $atts)); $media = new BP_Media_Host_Wordpress($id); return $media->get_media_activity_action(); }