'add-order' ), $admin_url );
printf(
'
%s',
esc_url( $add_new_url ),
esc_html__( 'Add New', 'easy-digital-downloads' )
);
}
?>
base ) {
return $admin_title;
}
// Get the view
$view = edd_get_payment_view();
// Which view?
switch ( $view ) {
// Edit/View
case 'view-order-details':
case 'edit-payment':
$title = __( 'Edit Order', 'easy-digital-downloads' ) . ' — ' . $admin_title;
break;
// Add
case 'add-order':
$title = __( 'Add New Order', 'easy-digital-downloads' ) . ' — ' . $admin_title;
break;
// List
case 'list' :
default:
$title = $admin_title;
break;
}
return $title;
}
add_filter( 'admin_title', 'edd_view_order_details_title', 10, 2 );