How to change where the Vantage Listing Button Widget links to...
I am wondering where in the code below I can add a link to where this widget directs people? I am currently using a different plugin for the registration process than the Vantage page.
class VA_Widget_Create_Listing_Button extends WP_Widget {
function __construct() {
$widget_ops = array(
'description' => __( 'A button for creating a new listing', APP_TD )
);
parent::__construct( 'create_listing_button', __( 'Vantage - Create Listing Button', APP_TD ), $widget_ops );
}
function widget( $args, $instance ) {
extract( $args );
$url = va_get_listing_create_url();
if ( is_tax( VA_LISTING_CATEGORY ) )
$url = add_query_arg( VA_LISTING_CATEGORY, get_queried_object_id(), $url );
echo $before_widget;
echo html_link( $url, __( 'Add a Listing Now', APP_TD ) );
echo $after_widget;
}