__( 'Actionable News', 'actionable_news_widget_domain' ), ) ); } // Creating widget front-end // This is where the action happens public function widget( $args, $instance ) { $partner_id = $instance['partner_id']; // before and after widget arguments are defined by themes echo $args['before_widget']; if (!empty($partner_id)) { echo $args['before_title'] ?>
} // actionable_news_head // Register and load the widget function actionable_news_load_widget() { register_widget( 'actionable_news_widget' ); } ?>