Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /var/www/theprintave/wp-content/plugins/dokan-lite/includes/Blocks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/theprintave/wp-content/plugins/dokan-lite/includes/Blocks/ProductBlock.php
<?php

namespace WeDevs\Dokan\Blocks;

/**
 * Dokan Block For Products.
 *
 * @since 3.7.10
 */
class ProductBlock {

    /**
     * Get Product configurations.
     *
     * @since 3.7.10
     *
     * @return array
     */
    public function get_configurations() {
        $can_create_tags = dokan_get_option( 'product_vendors_can_create_tags', 'dokan_selling' );

        return apply_filters(
            'dokan_get_product_block_configurations',
            [
                'disable_popup' => 'on' === dokan_get_option( 'disable_product_popup', 'dokan_selling', 'off' ),
                'statuses' => dokan_get_available_post_status(),
                'visibility_options' => dokan_get_product_visibility_options(),
                'manage_stocks' => 'yes' === get_option( 'woocommerce_manage_stock' ),
                'stock_statuses' => [
                    'instock'    => __( 'In Stock', 'dokan-lite' ),
                    'outofstock' => __( 'Out of Stock', 'dokan-lite' ),
                ],
                'backorders' => [
                    'no'     => __( 'Do not allow', 'dokan-lite' ),
                    'notify' => __( 'Allow, but notify customer', 'dokan-lite' ),
                    'yes'    => __( 'Allow', 'dokan-lite' ),
                ],
                'tags' => [
                    'can_create'  => $can_create_tags,
                    'placeholder' => 'on' === $can_create_tags ? __( 'Select tags/Add tags', 'dokan-lite' ) : __( 'Select product tags', 'dokan-lite' ),
                    'max_limit'   => apply_filters( 'dokan_product_tags_select_max_length', -1 ),
                ],
                'category' => [
                    'default' => get_term( get_option( 'default_product_cat' ) ),
                ],
                'can_export' => false,
                'can_import' => false,
            ]
        );
    }
}

Spamworldpro Mini