Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace DOKAN_LITE_SINCE with corresponding versions #2567

Merged
merged 2 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions assets/src/js/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Gets i18n date format
*
* @since DOKAN_PRO_SINCE
* @since 3.2.7
*/
window.dokan_get_i18n_date_format = function ( format = true ) {
if( ! format ) {
Expand Down Expand Up @@ -46,7 +46,7 @@
/**
* Get i18n time format.
*
* @since DOKAN_PRO_SINCE
* @since 3.3.7
*
* @param {string|boolean} format Time format.
*
Expand Down Expand Up @@ -110,7 +110,7 @@
/**
* Get formatted time.
*
* @since DOKAN_PRO_SINCE
* @since 3.3.7
*
* @param {string} time Time.
* @param {string} format Time format type.
Expand Down
4 changes: 2 additions & 2 deletions includes/Abstracts/DokanRESTBaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Base REST Controller for Dokan
*
* @since DOKAN_PRO_SINCE
* @since 3.14.4
*
* @package dokan
*/
Expand All @@ -23,7 +23,7 @@ abstract class DokanRESTBaseController extends WP_REST_Controller {
/**
* Format item's collection for response
*
* @since DOKAN_PRO_SINCE
* @since 3.14.4
*
* @param object $response
* @param object $request
Expand Down
4 changes: 2 additions & 2 deletions includes/Abstracts/DokanRESTCustomerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Customer REST Controller for Dokan
*
* @since DOKAN_PRO_SINCE
* @since 3.14.4
*
* @package dokan
*/
Expand All @@ -21,7 +21,7 @@ abstract class DokanRESTCustomerController extends DokanRESTBaseController {
/**
* Check if user has customer permission.
*
* @since DOKAN_PRO_SINCE
* @since 3.14.4
*
* @return bool
*/
Expand Down
4 changes: 2 additions & 2 deletions includes/Abstracts/DokanRESTVendorController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Vendor REST Controller for Dokan
*
* @since DOKAN_PRO_SINCE
* @since 3.14.4
*
* @package dokan
*/
Expand All @@ -21,7 +21,7 @@ abstract class DokanRESTVendorController extends DokanRESTBaseController {
/**
* Check if user has vendor permission.
*
* @since DOKAN_PRO_SINCE
* @since 3.14.4
*
* @return bool
*/
Expand Down
4 changes: 2 additions & 2 deletions includes/Admin/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ public function add_settings_after( $settings_fields, $section, $option, $additi
/**
* Add settings nonce to localized vars
*
* @since DOKNA_LITE_SINCE
* @since 3.0.6
*
* @param array $vars
*
Expand All @@ -997,7 +997,7 @@ public function add_admin_settings_nonce( $vars ) {
/**
* Get refreshed options for a admin setting
*
* @since DOKAN_LITE_SINCE
* @since 3.0.6
*
* @return void
*/
Expand Down
8 changes: 4 additions & 4 deletions includes/BackgroundProcess/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Background Process Manager Class.
*
* @since DOKAN_LITE_SINCE
* @since 3.7.10
*
* @property ChangeVendorProductStatus $change_vendor_product_status Instance of WeDevs\Dokan\Vendor\ChangeProductStatus class
*/
Expand All @@ -29,7 +29,7 @@ public function __construct() {
/**
* Initialize classes to chainable container.
*
* @since DOKAN_LITE_SINCE
* @since 3.7.10
*
* @return void
*/
Expand All @@ -43,7 +43,7 @@ public function init_classes() {
/**
* Initialize hooks.
*
* @since DOKAN_LITE_SINCE
* @since 3.7.10
*
* @return void
*/
Expand All @@ -54,7 +54,7 @@ public function init_hooks() {
/**
* Show variable products author updated notice.
*
* @since DOKAN_LITE_SINCE
* @since 3.7.10
*
* @param array $notices
*
Expand Down
10 changes: 5 additions & 5 deletions includes/BackgroundProcess/RewriteVariableProductsAuthor.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* RewriteVariableProductsAuthor Class.
*
* @since DOKAN_LITE_SINCE
* @since 3.7.10
*/
class RewriteVariableProductsAuthor extends WC_Background_Process {

Expand All @@ -31,7 +31,7 @@ public function __construct() {
*
* Updater will still run via cron job if this fails for any reason.
*
* @since DOKAN_LITE_SINCE
* @since 3.7.10
*
* @return void
*/
Expand All @@ -49,7 +49,7 @@ public function dispatch() {
/**
* Perform updates.
*
* @since DOKAN_LITE_SINCE
* @since 3.7.10
*
* @param array $args
*
Expand All @@ -70,7 +70,7 @@ public function task( $args ) {
/**
* Rewrite variable product variations author IDs.
*
* @since DOKAN_LITE_SINCE
* @since 3.7.10
*
* @param int $page
*
Expand Down Expand Up @@ -105,7 +105,7 @@ protected function rewrite_variable_product_variations_author_ids( $page = 1 ) {
/**
* Complete the process.
*
* @since DOKAN_LITE_SINCE
* @since 3.7.10
*
* @return void
*/
Expand Down
4 changes: 2 additions & 2 deletions includes/Commission.php
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ public function get_total_shipping_tax_refunded( WC_Order $order ): float {
*
* @deprecated 3.14.0 Use dokan()->fees->get_processing_fee instead.
*
* @since DOKAN_LITE_SINCE
* @since 3.0.4
*
* @param WC_Order $order
*
Expand All @@ -467,7 +467,7 @@ public function get_processing_fee( $order ) {
/**
* Get all the orders to be processed
*
* @since DOKAN_LITE_SINCE
* @since 3.0.4
*
* @param WC_Order $order
*
Expand Down
18 changes: 9 additions & 9 deletions includes/Commission/Upugrader/Update_Category_Commission.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ class Update_Category_Commission {
/**
* The batch size for processing categories
*
* @since DOKAN_PRO_SINCE
* @since 3.14.0
*/
const BATCH_SIZE = 20;

/**
* The hook name for processing batches
*
* @since DOKAN_PRO_SINCE
* @since 3.14.0
*/
const PROCESS_BATCH_HOOK = 'process_category_batch';
const PROCESS_BATCH_HOOK_CREATOR = 'process_category_batch_creator';

/**
*
* @since DOKAN_PRO_SINCE
* @since 3.14.0
*/
const PROCESS_ITEM_HOOK = 'process_category_item';

Expand All @@ -40,7 +40,7 @@ public function init_hooks() {
/**
* Start the batch processing
*
* @since DOKAN_PRO_SINCE
* @since 3.14.0
*
* @return void
*/
Expand Down Expand Up @@ -81,7 +81,7 @@ public function process_batch_creator() {
/**
* Process a batch of categories
*
* @since DOKAN_PRO_SINCE
* @since 3.14.0
*
* @param int $page_number Current page number
*
Expand All @@ -101,7 +101,7 @@ public function process_batch( $offset ) {
/**
* Schedule the next batch of categories
*
* @since DOKAN_PRO_SINCE
* @since 3.14.0
*
* @param int $page_number Next page number to process
*
Expand Down Expand Up @@ -135,7 +135,7 @@ private function schedule_cat_item( $term ) {
/**
* Get a batch of categories.
*
* @since DOKAN_PRO_SINCE
* @since 3.14.0
*
* @param int $page_number Page number to fetch
*
Expand Down Expand Up @@ -174,7 +174,7 @@ protected function category_count() {
/**
* Process a single category.
*
* @since DOKAN_PRO_SINCE
* @since 3.14.0
*
* @param int $term Category term object
*
Expand Down Expand Up @@ -212,7 +212,7 @@ public function process_single_category( $term_id ) {
/**
* Check if processing is currently running.
*
* @since DOKAN_PRO_SINCE
* @since 3.14.0
*
* @return bool
*/
Expand Down
20 changes: 10 additions & 10 deletions includes/Commission/Upugrader/Update_Product_Commission.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ class Update_Product_Commission {
/**
* The batch size for processing products
*
* @since DOKAN_PRO_SINCE
* @since 3.14.0
*/
const BATCH_SIZE = 10;

/**
* The hook name for processing batches
*
* @since DOKAN_PRO_SINCE
* @since 3.14.0
*/
const PROCESS_BATCH_HOOK = 'process_product_batch';
const PROCESS_BATCH_HOOK_CREATOR = 'process_product_batch_creator';

/**
*
* @since DOKAN_PRO_SINCE
* @since 3.14.0
*/
const PROCESS_ITEM_HOOK = 'process_product_item';

Expand All @@ -39,7 +39,7 @@ public function init_hooks() {
/**
* Start the batch processing
*
* @since DOKAN_PRO_SINCE
* @since 3.14.0
*
* @return void
*/
Expand Down Expand Up @@ -80,7 +80,7 @@ public function process_batch_creator() {
/**
* Process a batch of products
*
* @since DOKAN_PRO_SINCE
* @since 3.14.0
*
* @param int $offset Current offset
* @param int $total_products Total number of products
Expand All @@ -99,7 +99,7 @@ public function process_batch( $offset, $total_products ) {
/**
* Schedule the next batch of products
*
* @since DOKAN_PRO_SINCE
* @since 3.14.0
*
* @param int $offset Current offset
* @param int $total_products Total number of products
Expand Down Expand Up @@ -136,7 +136,7 @@ private function schedule_item( $item ) {
/**
* Get a batch of products
*
* @since DOKAN_PRO_SINCE
* @since 3.14.0
*
* @param int $offset Current offset
*
Expand All @@ -157,7 +157,7 @@ protected function get_products_batch( $offset ) {
/**
* Get total number of products
*
* @since DOKAN_PRO_SINCE
* @since 3.14.0
*
* @return int
*/
Expand All @@ -177,7 +177,7 @@ protected function get_total_products() {
* Process a single product
* Customize this method based on what you need to do with each product
*
* @since DOKAN_PRO_SINCE
* @since 3.14.0
*
* @param int $product
*
Expand Down Expand Up @@ -210,7 +210,7 @@ public function process_single_product( $product_id ) {
/**
* Check if processing is currently running
*
* @since DOKAN_PRO_SINCE
* @since 3.14.0
*
* @return bool
*/
Expand Down
Loading
Loading