/** * How to display the widget on the screen. */ function widget($args, $instance) { extract($args); /* Our variables from the widget settings. */ $title = apply_filters('widget_title', $instance['title']); /* Before widget (defined by themes). */ echo $before_widget; /* Display the widget title if one was input (before and after defined by themes). */ if ($title) { echo $before_title . $title . $after_title; } ?> <?php rehub_login_form(); ?> <?php /* After widget (defined by themes). */ echo $after_widget; }
function wpsm_login_page($atts, $content = null) { ob_start(); rehub_login_form(); $output = ob_get_contents(); ob_end_clean(); return $output; }