Skip to content

Commit

Permalink
Merge branch 'develop' into productEdit
Browse files Browse the repository at this point in the history
  • Loading branch information
shashwatahalder01 committed Oct 4, 2024
2 parents 5d06806 + 2fdcc42 commit 5ff0d47
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 10 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
**WC requires at least:** 8.0.0
**WC tested up to:** 9.3.3
**Requires PHP:** 7.4
**Stable tag:** 3.12.3
**Stable tag:** 3.12.4
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -347,6 +347,10 @@ A. Just install and activate the PRO version without deleting the free plugin. A

## Changelog ##

### v3.12.4 ( Oct 03, 2024 ) ###

- **update:** Added `$data` parameter to `dokan_update_vendor` hook.

### v3.12.3 ( Sep 30, 2024 ) ###

- **update:** Added compatibility with RFQ state field ui.
Expand Down
4 changes: 2 additions & 2 deletions dokan.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Dokan
* Plugin URI: https://dokan.co/wordpress/
* Description: An e-commerce marketplace plugin for WordPress. Powered by WooCommerce and weDevs.
* Version: 3.12.3
* Version: 3.12.4
* Author: weDevs
* Author URI: https://dokan.co/
* Text Domain: dokan-lite
Expand Down Expand Up @@ -66,7 +66,7 @@ final class WeDevs_Dokan {
*
* @var string
*/
public $version = '3.12.2';
public $version = '3.12.4';

/**
* Instance of self
Expand Down
19 changes: 18 additions & 1 deletion includes/Vendor/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -429,11 +429,28 @@ public function update( $vendor_id, $data = [] ) {
}
}

/**
* Fires before a vendor is updated.
*
* @since 2.9.10
*
* @param int $vendor_id The ID of the vendor being updated.
* @param array $data The array of vendor data being updated.
*/
do_action( 'dokan_before_update_vendor', $vendor->get_id(), $data );

$vendor->save();

do_action( 'dokan_update_vendor', $vendor->get_id() );
/**
* Fires after a vendor has been updated.
*
* @since 2.9.10
* @since 3.12.4 added $data parameter
*
* @param int $vendor_id The ID of the vendor that was updated.
* @param array $data The array of vendor data that was updated.
*/
do_action( 'dokan_update_vendor', $vendor->get_id(), $data );

return $vendor->get_id();
}
Expand Down
4 changes: 2 additions & 2 deletions languages/dokan-lite.pot
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Copyright (c) 2024 weDevs Pte. Ltd. All Rights Reserved.
msgid ""
msgstr ""
"Project-Id-Version: Dokan 3.12.3\n"
"Project-Id-Version: Dokan 3.12.4\n"
"Report-Msgid-Bugs-To: https://dokan.co/contact/\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-09-30T09:33:46+00:00\n"
"POT-Creation-Date: 2024-10-03T05:38:32+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.11.0\n"
"X-Domain: dokan-lite\n"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dokan",
"version": "3.12.3",
"version": "3.12.4",
"description": "A WordPress marketplace plugin",
"author": "weDevs",
"license": "GPL",
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Tested up to: 6.6.2
WC requires at least: 8.0.0
WC tested up to: 9.3.3
Requires PHP: 7.4
Stable tag: 3.12.3
Stable tag: 3.12.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -347,6 +347,10 @@ A. Just install and activate the PRO version without deleting the free plugin. A

== Changelog ==

= v3.12.4 ( Oct 03, 2024 ) =

- **update:** Added `$data` parameter to `dokan_update_vendor` hook.

= v3.12.3 ( Sep 30, 2024 ) =

- **update:** Added compatibility with RFQ state field ui.
Expand Down
12 changes: 12 additions & 0 deletions templates/whats-new.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
* When you are adding new version please follow this sequence for changes: New Feature, New, Improvement, Fix...
*/
$changelog = [
[
'version' => 'Version 3.12.4',
'released' => '2024-10-03',
'changes' => [
'Improvement' => [
[
'title' => 'Added `$data` parameter to `dokan_update_vendor` hook.',
'description' => '',
],
],
],
],
[
'version' => 'Version 3.12.3',
'released' => '2024-09-30',
Expand Down

0 comments on commit 5ff0d47

Please sign in to comment.