�PNG  IHDR22?�� pHYs  �� OiCCPPhotoshop ICC profilexڝSgTS�=���BK���KoR RB���&*! J�!��Q�EEȠ�����Q, � ��!���������{�kּ������>���� �H3Q5� �B�������.@� $p�d!s�#�~<<+"��x� �M��0���B�\���t�8K�@z�B�@F���&S�`�cb�P-`'������{[�!�� e�Dh;��V�EX0fK�9�-0IWfH���� � 0Q��){`�##x��F�W<�+��*x��<�$9E�[-qWW.(�I+6aa�@.�y�2�4���������x����6��_-��"bb���ϫp@�t~��,/��;�m��%�h^ �u��f�@����W�p�~<�5�j>{�-�]c�K'Xt����o��(�h���w��?�G�%�fI�q^D$.Tʳ?�D��*�A��,���� �`6�B$��BB d�r`)��B(�Ͱ*`/�@4�Qh��p.�U�=p�a��(�� A�a!ڈb�X#����!�H�$ ɈQ"K�5H1R�T UH�=r9�\F��;�2����G1���Q=� �C��7�F� �dt1�����r�=�6��Ыhڏ>C�0��3�l0.��B�8, �c˱"� ���V����cϱw�E� 6wB aAHXLXN�H� $4� 7 �Q�'"��K�&���b21�XH,#��/{�C�7$�C2'��I��T��F�nR#�,��4H#���dk�9�, +ȅ����3��!�[ �b@q��S�(R�jJ��4�e�2AU��Rݨ�T5�ZB���R�Q��4u�9̓IK�����hh�i��t�ݕN��W���G���w ��Ljg(�gw��L�Ӌ�T071���oUX*�*|�� �J�&�*/T����ު U�U�T��^S}�FU3S� Ԗ�U��P�SSg�;���g�oT?�~Y��Y�L�OC�Q��_�� c�x,!k ��u�5�&���|v*�����=���9C3J3W�R�f?�q��tN �(���~���)�)�4L�1e\k����X�H�Q�G�6������E�Y��A�J'\'Gg����S�Sݧ �M=:��.�k���Dw�n��^��Lo��y���}/�T�m���G X� $� �<�5qo</���QC]�@C�a�a�ᄑ��<��F�F�i�\�$�m�mƣ&&!&KM�M�RM��)�;L;L���͢�֙5�=1�2��כ߷`ZxZ,����eI��Z�Yn�Z9Y�XUZ]�F���%ֻ�����N�N���gð�ɶ�����ۮ�m�}agbg�Ů��}�}��= ���Z~s�r:V:ޚΜ�?}����/gX���3��)�i�S��Ggg�s�󈋉K��.�>.���Ƚ�Jt�q]�z���������ۯ�6�i�ܟ�4�)�Y3s���C�Q��? ��0k߬~OCO�g��#/c/�W�װ��w��a�>�>r��>�<7�2�Y_�7��ȷ�O�o�_��C#�d�z����%g��A�[��z|!��?:�e����A���AA�������!h�쐭!��Α�i�P~���a�a��~ '���W�?�p�X�1�5w��Cs�D�D�Dޛg1O9�-J5*>�.j<�7�4�?�.fY��X�XIlK9.*�6nl������� �{�/�]py�����.,:�@L�N8��A*��%�w%� y��g"/�6ш�C\*N�H*Mz�쑼5y$�3�,幄'���L Lݛ:��v m2=:�1����qB�!M��g�g�fvˬe����n��/��k���Y- �B��TZ(�*�geWf�͉�9���+��̳�ې7�����ᒶ��KW-X潬j9�������(�x��oʿ�ܔ���Ĺd�f�f���-�[����n �ڴ �V����E�/��(ۻ��C���<��e����;?T�T�T�T6��ݵa��n��{��4���[���>ɾ�UUM�f�e�I���?�������m]�Nmq����#�׹���=TR��+�G�����w- 6 U����#pDy��� �� :�v�{���vg/jB��F�S��[b[�O�>����z�G��499�?r����C�d�&����ˮ/~�����јѡ�򗓿m|������������x31^�V���w�w��O�| (�h���SЧ��������c3-� cHRMz%������u0�`:�o�_�F5IDATx��ytUս�?�;���fN$$��@B�!�k��� -*�gE���j�O�kQ�ʠ`U�B_ �AÐ0%�Ȕ�@r3ޛ;߳��$�@��v����^�s����������$��ߢ !�W��5�̱'-٘������4�>�Rƫ$�G��0U�H}�_ _� #��k�MJ/=�9Du *ڲ�k�PQ;0��j|�*�$�^컂脛y���>�z×� B��� ��(�:$�ʔ_�6��C!B����MVx��a��ζyY����j��ƋY2�9�F�{r��r�딟F��Q��hY6��� x��[l��RC��������nt@��;P��3��� F�w��7��:�P���ɋ'���mj���Bƪ�$�Q�L��y��߷g��\���z����v5�p�v$�v櫻�`6~K �Y�X����,�:��"�o�e0II"(��,������l_�C���/4�+f�E�!q��:����u����c��樼.UE�@� �]K�W���$-�h]�JG���Dz)�`��.�A/ ���mᏣc�3jK� �!�>���$�Q�!�_�? \�C2(E �M$Z I{�U���s�ǣ���=��@Բe ޻��W�����@ �w����}�9v,)��.}*|"�s��di���,���G�]W�AC�������|<����[��ߕ������K�*�G nߴ!��‹��J�!��6(L�a)��Am��������;adf��:�xm��nh�;֦I��(���o�C~ډa?�=��s����h��E������xp����)���_���t��W�����´;8���`dz=(��@@�+,�;�`�fhl��XȌ�3,uI�~z(J����� �ZX�A����H'�À�㜦�82|��a�n�z2��I���� ���EY�h�ε<�0�q�{��C��v�˅��?"@��χ�x�WS+��N�~�KQ�J�8ل�� _.W��� !TU{�����,��"�� �;�������HI S� ��))�o�1�H�D� ���� (� ;����"Ҕ��,���� �F=���O��&�Ph>�`���y��߲ &S��P�<��'��1s�1cĂ�N����2)����@�u��tv��<�+�-&�����h��[!FSG���' � z z0��<����8d&�����E0�,��<��"!P�b4��� �{S�����X����.�囤���T��hEF��X�q0"-<����h���]�Py*����F⩍��@v�˂�Y08�� .q��a��s����(!<̫1�3�L�H��7sYW�`��qtu�\7��?�@�Y�� %Ka�x�GZ�*W�P��y�����N0r9��Z�c�%���q,��k�����!!,��>���IB��� �x1�Xu�Y���v-���ֺ��N������JP��a�2`�e5��w��u;�6�i���̃��(K���ťa��(l51��JL��O'%���]���ٖ뿉!��{*�p+f ���i8��D�ȑ���ܩ�M��V��ӟz��x�7Z�1i}�^͜���6e����x��)u�d�ˏ�V�eG�\�X1�����=n�U'�~Y����L�\,�(d!x ,�:�TW8� M`r���@��r+v�Q0��>^;˴�VbF��('����� �*O��i��j�Ӆ����^�S3&� ���{������.ی�� N;��NU%d0�Ce\r"�C�b��&t7N�7��� �ȪD�[%l�۪�$��'m?�A9tI�9>��NVL ��� 6v~M�����ъ�B���0����9$&=ώm��W�0���L���&��E���f�f��'+�9��hv��7,���M��6�D�&�^� �����8 D֮�����o��k^z��O��hP�8q�5d*��YVq3�{��������#LX4�?��jP=3�~�؅c�ݰ�̱�ұ��8̲��2�G�����j��έ�9��w7���U�X�w�85C��?!I&���o&����L���I#�^�eV�,�^t5�k� �xs˛\��U�8��."���{���ǵ�l4��ݼ�;��r"���G�/~���gJV�N糦��ZZ^k+NN�D��I$�=OE�z����|*�*{��%k���G��>�`9��b;�s���8,�qs��c��.b��q�%�>r��n�R�Ƨ�%�,�A��le#�8���}; 21�0�b�&�QX�f���q�00����$>�h�N�'�a3��A���/�r ��L5�8�GԲ'�����w;��c#�q1���h$*��V^�k��QĽ�b:i������� ����H F#�_���,��]g����Ը����`RUU���� ��"�qD���>-��ϤI�~��3�̴�����NZ[[555�eeek7�m����YF#[��Đ��R��i��L�H�r ��@��J-�Pŝ��_|�-��6y��ks�V�U~��6���w.����(��0A� 4��f��� /���C�xŊ�ٳ����z=6�����rg���mKo��o�/����a�g���?'9%9��P��斓��~���L{�� �H��{AW��B��$����v�1b�&Mb�ر��ر#�0`�`xMBp! )Z�Nmo�mZ�g�}�eذaWTVV ���'99��C5��&�&+5�bT>|8��PUUETT����&���t��~TE%��'������b�tEGG;RSS�S�N�v��ѯ��t����u1@�ޚ"f��͈���r'L�Ph��m��ƌ�74o��`�x�q�P���NRSS�X,�����l&&&��MFFA!-��`��ҷ�n��Yuu�����x<I�LB%����KԒ50�!�3�bz�����ʸKL���;---�l6[��`��������Ȏ;�����egg4��!D�T��jWujyZ��������K����%����p�^���X,6��sV=�ܖ����6�3�X ���4ҿ��A2�&����_k�;d�� �VfOIEND�B`� 0x0x
PHP 8.1.34
Preview: wc-rest-functions.php Size: 13.93 KB
/home2/astrociv/public_html/rudraraksham.com/wp-content/plugins/woocommerce/includes/wc-rest-functions.php
<?php
/**
 * WooCommerce REST Functions
 *
 * Functions for REST specific things.
 *
 * @package WooCommerce\Functions
 * @version 2.6.0
 */

use Automattic\WooCommerce\Internal\Utilities\Users;

defined( 'ABSPATH' ) || exit;

/**
 * Parses and formats a date for ISO8601/RFC3339.
 *
 * Required WP 4.4 or later.
 * See https://developer.wordpress.org/reference/functions/mysql_to_rfc3339/
 *
 * @since  2.6.0
 * @param  string|null|WC_DateTime $date Date.
 * @param  bool                    $utc  Send false to get local/offset time.
 * @return string|null ISO8601/RFC3339 formatted datetime.
 */
function wc_rest_prepare_date_response( $date, $utc = true ) {
	if ( is_numeric( $date ) ) {
		$date = new WC_DateTime( "@$date", new DateTimeZone( 'UTC' ) );
		$date->setTimezone( new DateTimeZone( wc_timezone_string() ) );
	} elseif ( is_string( $date ) ) {
		$date = new WC_DateTime( $date, new DateTimeZone( 'UTC' ) );
		$date->setTimezone( new DateTimeZone( wc_timezone_string() ) );
	}

	if ( ! is_a( $date, 'WC_DateTime' ) ) {
		return null;
	}

	// Get timestamp before changing timezone to UTC.
	return gmdate( 'Y-m-d\TH:i:s', $utc ? $date->getTimestamp() : $date->getOffsetTimestamp() );
}

/**
 * Returns image mime types users are allowed to upload via the API.
 *
 * @since  2.6.4
 * @return array
 */
function wc_rest_allowed_image_mime_types() {
	return apply_filters(
		'woocommerce_rest_allowed_image_mime_types',
		array(
			'jpg|jpeg|jpe' => 'image/jpeg',
			'gif'          => 'image/gif',
			'png'          => 'image/png',
			'bmp'          => 'image/bmp',
			'tiff|tif'     => 'image/tiff',
			'ico'          => 'image/x-icon',
			'webp'         => 'image/webp',
		)
	);
}

/**
 * Upload image from URL.
 *
 * @since 2.6.0
 * @param string $image_url Image URL.
 * @return array|WP_Error Attachment data or error message.
 */
function wc_rest_upload_image_from_url( $image_url ) {
	$parsed_url = wp_parse_url( $image_url );

	// Check parsed URL.
	if ( ! $parsed_url || ! is_array( $parsed_url ) ) {
		/* translators: %s: image URL */
		return new WP_Error( 'woocommerce_rest_invalid_image_url', sprintf( __( 'Invalid URL %s.', 'woocommerce' ), $image_url ), array( 'status' => 400 ) );
	}

	// Ensure url is valid.
	$image_url = esc_url_raw( $image_url );

	// download_url function is part of wp-admin.
	if ( ! function_exists( 'download_url' ) ) {
		include_once ABSPATH . 'wp-admin/includes/file.php';
	}

	$file_array         = array();
	$file_array['name'] = basename( current( explode( '?', $image_url ) ) );

	// Download file to temp location.
	$file_array['tmp_name'] = download_url( $image_url );

	// If error storing temporarily, return the error.
	if ( is_wp_error( $file_array['tmp_name'] ) ) {
		return new WP_Error(
			'woocommerce_rest_invalid_remote_image_url',
			/* translators: %s: image URL */
			sprintf( __( 'Error getting remote image %s.', 'woocommerce' ), $image_url ) . ' '
			/* translators: %s: error message */
			. sprintf( __( 'Error: %s', 'woocommerce' ), $file_array['tmp_name']->get_error_message() ),
			array( 'status' => 400 )
		);
	}

	// Do the validation and storage stuff.
	$file = wp_handle_sideload(
		$file_array,
		array(
			'test_form' => false,
			'mimes'     => wc_rest_allowed_image_mime_types(),
		),
		current_time( 'Y/m' )
	);

	if ( isset( $file['error'] ) ) {
		@unlink( $file_array['tmp_name'] ); // @codingStandardsIgnoreLine.

		/* translators: %s: error message */
		return new WP_Error( 'woocommerce_rest_invalid_image', sprintf( __( 'Invalid image: %s', 'woocommerce' ), $file['error'] ), array( 'status' => 400 ) );
	}

	do_action( 'woocommerce_rest_api_uploaded_image_from_url', $file, $image_url );

	return $file;
}

/**
 * Set uploaded image as attachment.
 *
 * @since 2.6.0
 * @param array $upload Upload information from wp_upload_bits.
 * @param int   $id Post ID. Default to 0.
 * @return int Attachment ID
 */
function wc_rest_set_uploaded_image_as_attachment( $upload, $id = 0 ) {
	$info    = wp_check_filetype( $upload['file'] );
	$title   = '';
	$content = '';

	if ( ! function_exists( 'wp_generate_attachment_metadata' ) ) {
		include_once ABSPATH . 'wp-admin/includes/image.php';
	}

	$image_meta = @wp_read_image_metadata( $upload['file'] );
	if ( $image_meta ) {
		if ( trim( $image_meta['title'] ) && ! is_numeric( sanitize_title( $image_meta['title'] ) ) ) {
			$title = wc_clean( $image_meta['title'] );
		}
		if ( trim( $image_meta['caption'] ) ) {
			$content = wc_clean( $image_meta['caption'] );
		}
	}

	$attachment = array(
		'post_mime_type' => $info['type'],
		'guid'           => $upload['url'],
		'post_parent'    => $id,
		'post_title'     => $title ? $title : basename( $upload['file'] ),
		'post_content'   => $content,
	);

	$attachment_id = wp_insert_attachment( $attachment, $upload['file'], $id );
	if ( ! is_wp_error( $attachment_id ) ) {
		@wp_update_attachment_metadata( $attachment_id, wp_generate_attachment_metadata( $attachment_id, $upload['file'] ) );
	}

	return $attachment_id;
}

/**
 * Validate reports request arguments.
 *
 * @since 2.6.0
 * @param mixed           $value   Value to validate.
 * @param WP_REST_Request $request Request instance.
 * @param string          $param   Param to validate.
 * @return WP_Error|boolean
 */
function wc_rest_validate_reports_request_arg( $value, $request, $param ) {

	$attributes = $request->get_attributes();
	if ( ! isset( $attributes['args'][ $param ] ) || ! is_array( $attributes['args'][ $param ] ) ) {
		return true;
	}
	$args = $attributes['args'][ $param ];

	if ( 'string' === $args['type'] && ! is_string( $value ) ) {
		/* translators: 1: param 2: type */
		return new WP_Error( 'woocommerce_rest_invalid_param', sprintf( __( '%1$s is not of type %2$s', 'woocommerce' ), $param, 'string' ) );
	}

	if ( 'date' === $args['format'] ) {
		$regex = '#^\d{4}-\d{2}-\d{2}$#';

		if ( ! preg_match( $regex, $value, $matches ) ) {
			return new WP_Error( 'woocommerce_rest_invalid_date', __( 'The date you provided is invalid.', 'woocommerce' ) );
		}
	}

	return true;
}

/**
 * Encodes a value according to RFC 3986.
 * Supports multidimensional arrays.
 *
 * @since 2.6.0
 * @param string|array $value The value to encode.
 * @return string|array       Encoded values.
 */
function wc_rest_urlencode_rfc3986( $value ) {
	if ( is_array( $value ) ) {
		return array_map( 'wc_rest_urlencode_rfc3986', $value );
	}

	return str_replace( array( '+', '%7E' ), array( ' ', '~' ), rawurlencode( $value ) );
}

/**
 * Check permissions of posts on REST API.
 *
 * @since 2.6.0
 * @param string $post_type Post type.
 * @param string $context   Request context.
 * @param int    $object_id Post ID.
 * @return bool
 */
function wc_rest_check_post_permissions( $post_type, $context = 'read', $object_id = 0 ) {
	$contexts = array(
		'read'   => 'read_private_posts',
		'create' => 'publish_posts',
		'edit'   => 'edit_post',
		'delete' => 'delete_post',
		'batch'  => 'edit_others_posts',
	);

	if ( 'revision' === $post_type ) {
		$permission = false;
	} else {
		$cap              = $contexts[ $context ];
		$post_type_object = get_post_type_object( $post_type );
		$permission       = false;
		if ( $post_type_object instanceof WP_Post_Type ) {
			$permission = current_user_can( $post_type_object->cap->$cap, $object_id );
		}
	}

	return apply_filters( 'woocommerce_rest_check_permissions', $permission, $context, $object_id, $post_type );
}

/**
 * Check permissions of users on REST API.
 *
 * @since 2.6.0
 * @since 9.4.0 Became multisite aware. The function now considers whether the user belongs to the current site.
 *
 * @param string $context   Request context.
 * @param int    $object_id User ID.
 * @return bool
 */
function wc_rest_check_user_permissions( $context = 'read', $object_id = 0 ) {
	$contexts = array(
		'read'   => 'list_users',
		'create' => 'create_customers',
		'edit'   => 'edit_users',
		'delete' => 'delete_users',
		'batch'  => 'promote_users',
	);

	// Check to allow shop_managers to manage only customers.
	if ( in_array( $context, array( 'edit', 'delete' ), true ) && wc_current_user_has_role( 'shop_manager' ) ) {
		$permission                  = false;
		$user_data                   = get_userdata( $object_id );
		$shop_manager_editable_roles = apply_filters( 'woocommerce_shop_manager_editable_roles', array( 'customer' ) );

		if ( isset( $user_data->roles ) ) {
			$can_manage_users = array_intersect( $user_data->roles, array_unique( $shop_manager_editable_roles ) );

			// Check if Shop Manager can edit customer or with the is same shop manager.
			if ( 0 < count( $can_manage_users ) || intval( $object_id ) === intval( get_current_user_id() ) ) {
				$permission = current_user_can( $contexts[ $context ], $object_id );
			}
		}
	} else {
		$permission = current_user_can( $contexts[ $context ], $object_id );
	}

	// Possibly revoke $permission if the user is 'out of bounds' from a multisite-network perspective.
	if ( $permission && ! Users::get_user_in_current_site( $object_id ) ) {
		$permission = false;
	}

	/**
	 * Provides an opportunity to override the permission check made before acting on an object in relation to
	 * REST API requests.
	 *
	 * @since 2.6.0
	 *
	 * @param bool   $permission  If we have permission to act on this object.
	 * @param string $context     Describes the operation being performed: 'read', 'edit', 'delete', etc.
	 * @param int    $object_id   Object ID. This could be a user ID, order ID, post ID, etc.
	 * @param string $object_type Type of object ('user', 'shop_order', etc) for which checks are being made.
	 */
	return apply_filters( 'woocommerce_rest_check_permissions', $permission, $context, $object_id, 'user' );
}

/**
 * Check permissions of product terms on REST API.
 *
 * @since 2.6.0
 * @param string $taxonomy  Taxonomy.
 * @param string $context   Request context.
 * @param int    $object_id Post ID.
 * @return bool
 */
function wc_rest_check_product_term_permissions( $taxonomy, $context = 'read', $object_id = 0 ) {
	$contexts = array(
		'read'   => 'manage_terms',
		'create' => 'edit_terms',
		'edit'   => 'edit_terms',
		'delete' => 'delete_terms',
		'batch'  => 'edit_terms',
	);

	$cap             = $contexts[ $context ];
	$taxonomy_object = get_taxonomy( $taxonomy );
	$permission      = current_user_can( $taxonomy_object->cap->$cap, $object_id );

	return apply_filters( 'woocommerce_rest_check_permissions', $permission, $context, $object_id, $taxonomy );
}

/**
 * Check manager permissions on REST API.
 *
 * @since 2.6.0
 * @param string $object  Object.
 * @param string $context Request context.
 * @return bool
 */
function wc_rest_check_manager_permissions( $object, $context = 'read' ) {
	$objects = array(
		'reports'          => 'view_woocommerce_reports',
		'settings'         => 'manage_woocommerce',
		'system_status'    => 'manage_woocommerce',
		'attributes'       => 'manage_product_terms',
		'shipping_methods' => 'manage_woocommerce',
		'payment_gateways' => 'manage_woocommerce',
		'webhooks'         => 'manage_woocommerce',
	);

	$permission = current_user_can( $objects[ $object ] );

	return apply_filters( 'woocommerce_rest_check_permissions', $permission, $context, 0, $object );
}

/**
 * Check product reviews permissions on REST API.
 *
 * @since 3.5.0
 * @param string $context   Request context.
 * @param string $object_id Object ID.
 * @return bool
 */
function wc_rest_check_product_reviews_permissions( $context = 'read', $object_id = 0 ) {
	$permission = false;
	$contexts   = array(
		'read'   => 'moderate_comments',
		'create' => 'edit_products',
		'edit'   => 'edit_products',
		'delete' => 'edit_products',
		'batch'  => 'edit_products',
	);

	if ( $object_id > 0 ) {
		$object = get_comment( $object_id );

		if ( ! is_a( $object, 'WP_Comment' ) || get_comment_type( $object ) !== 'review' ) {
			return false;
		}
	}

	if ( isset( $contexts[ $context ] ) ) {
		$permission = current_user_can( $contexts[ $context ], $object_id );
	}

	return apply_filters( 'woocommerce_rest_check_permissions', $permission, $context, $object_id, 'product_review' );
}

/**
 * Returns true if the current REST request is from the product editor.
 *
 * @since 8.9.0
 * @return bool
 */
function wc_rest_is_from_product_editor() {
	return isset( $_SERVER['HTTP_X_WC_FROM_PRODUCT_EDITOR'] ) && '1' === $_SERVER['HTTP_X_WC_FROM_PRODUCT_EDITOR'];
}

/**
 * Check if a REST namespace should be loaded. Useful to maintain site performance even when lots of REST namespaces are registered.
 *
 * @since 9.2.0.
 *
 * @param string $ns The namespace to check.
 * @param string $rest_route (Optional) The REST route being checked.
 *
 * @return bool True if the namespace should be loaded, false otherwise.
 */
function wc_rest_should_load_namespace( string $ns, string $rest_route = '' ): bool {
	if ( '' === $rest_route ) {
		$rest_route = $GLOBALS['wp']->query_vars['rest_route'] ?? '';
	}

	if ( '' === $rest_route ) {
		return true;
	}

	$rest_route = trailingslashit( ltrim( $rest_route, '/' ) );
	$ns         = trailingslashit( $ns );

	/**
	 * Known namespaces that we know are safe to not load if the request is not for them. Namespaces not in this namespace should always be loaded, because we don't know if they won't be making another internal REST request to an unloaded namespace.
	 */
	$known_namespaces = array(
		'wc/v1',
		'wc/v2',
		'wc/v3',
		'wc/v4',
		'wc-telemetry',
		'wc-admin',
		'wc-analytics',
		'wc/store',
		'wc/private',
	);

	$known_namespace_request = false;
	foreach ( $known_namespaces as $known_namespace ) {
		if ( str_starts_with( $rest_route, $known_namespace ) ) {
			$known_namespace_request = true;
			break;
		}
	}

	if ( ! $known_namespace_request ) {
		return true;
	}

	/**
	 * Filters whether a namespace should be loaded.
	 *
	 * @param bool   $should_load True if the namespace should be loaded, false otherwise.
	 * @param string $ns          The namespace to check.
	 * @param string $rest_route  The REST route being checked.
	 * @param array  $known_namespaces Known namespaces that we know are safe to not load if the request is not for them.
	 *
	 * @since 9.4
	 */
	return apply_filters( 'wc_rest_should_load_namespace', str_starts_with( $rest_route, $ns ), $ns, $rest_route, $known_namespaces );
}

Directory Contents

Dirs: 28 × Files: 115
Name Size Perms Modified Actions
abstracts DIR
- drwxr-xr-x 2026-07-28 11:37:05
Edit Download
admin DIR
- drwxr-xr-x 2026-07-28 11:37:06
Edit Download
blocks DIR
- drwxr-xr-x 2026-07-28 11:37:06
Edit Download
cli DIR
- drwxr-xr-x 2026-07-28 11:37:06
Edit Download
- drwxr-xr-x 2026-07-28 11:37:06
Edit Download
- drwxr-xr-x 2026-07-28 11:37:07
Edit Download
emails DIR
- drwxr-xr-x 2026-07-28 11:37:07
Edit Download
export DIR
- drwxr-xr-x 2026-07-28 11:37:07
Edit Download
gateways DIR
- drwxr-xr-x 2026-07-28 11:37:07
Edit Download
import DIR
- drwxr-xr-x 2026-07-28 11:37:07
Edit Download
- drwxr-xr-x 2026-07-28 11:36:53
Edit Download
- drwxr-xr-x 2026-07-28 11:37:07
Edit Download
legacy DIR
- drwxr-xr-x 2026-07-28 11:37:07
Edit Download
libraries DIR
- drwxr-xr-x 2026-07-28 11:37:07
Edit Download
- drwxr-xr-x 2026-07-28 11:37:07
Edit Download
- drwxr-xr-x 2026-07-28 11:37:07
Edit Download
- drwxr-xr-x 2026-07-28 11:37:07
Edit Download
queue DIR
- drwxr-xr-x 2026-07-28 11:37:07
Edit Download
- drwxr-xr-x 2026-07-28 11:37:07
Edit Download
rest-api DIR
- drwxr-xr-x 2026-07-28 11:37:07
Edit Download
shipping DIR
- drwxr-xr-x 2026-07-28 11:36:53
Edit Download
- drwxr-xr-x 2026-07-28 11:37:07
Edit Download
- drwxr-xr-x 2026-07-28 11:37:07
Edit Download
tracks DIR
- drwxr-xr-x 2026-07-28 11:37:07
Edit Download
traits DIR
- drwxr-xr-x 2026-07-28 11:37:07
Edit Download
walkers DIR
- drwxr-xr-x 2026-07-28 11:37:07
Edit Download
- drwxr-xr-x 2026-07-28 11:37:07
Edit Download
widgets DIR
- drwxr-xr-x 2026-07-28 11:37:08
Edit Download
133.30 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
12.69 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
5.27 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
4.68 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
3.45 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
1.78 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
6.89 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
35.04 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
10.41 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
13.51 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
3.37 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
25.37 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
28.48 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
75.50 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
50.48 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
3.34 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
23.08 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
51.69 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
44.64 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
3.37 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
10.34 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
33.28 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
1.29 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
6.59 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
2.26 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
6.59 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
7.34 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
36.64 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
28.54 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
39.64 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
4.24 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
48.17 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
34.44 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
30.43 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
1.99 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
11.46 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
4.33 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
107.57 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
1.28 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
3.90 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
9.41 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
2.33 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
8.98 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
4.08 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
9.99 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
5.80 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
18.33 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
9.58 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
6.50 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
22.70 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
2.52 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
5.99 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
78.37 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
14.40 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
6.24 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
39.09 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
29.65 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
1.79 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
13.61 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
14.69 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
17.22 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
7.87 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
13.18 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
4.98 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
4.59 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
6.81 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
2.27 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
2.70 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
25.30 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
20.22 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
37.55 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
4.00 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
7.74 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
15.44 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
5.05 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
21.55 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
276 B lrw-r--r-- 2026-07-28 11:37:06
Edit Download
24.57 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
9.34 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
13.08 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
5.00 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
13.03 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
18.82 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
24.96 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
39.87 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
20.42 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
51.50 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
5.79 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
32.24 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
63.94 KB lrw-r--r-- 2026-07-28 11:37:06
Edit Download
14.83 KB lrw-r--r-- 2026-07-28 11:37:07
Edit Download
22.81 KB lrw-r--r-- 2026-07-28 11:37:07
Edit Download
4.17 KB lrw-r--r-- 2026-07-28 11:37:07
Edit Download
21.58 KB lrw-r--r-- 2026-07-28 11:37:07
Edit Download
15.53 KB lrw-r--r-- 2026-07-28 11:37:08
Edit Download
79.00 KB lrw-r--r-- 2026-07-28 11:37:08
Edit Download
5.56 KB lrw-r--r-- 2026-07-28 11:37:08
Edit Download
40.38 KB lrw-r--r-- 2026-07-28 11:37:08
Edit Download
49.91 KB lrw-r--r-- 2026-07-28 11:37:08
Edit Download
2.43 KB lrw-r--r-- 2026-07-28 11:37:08
Edit Download
8.49 KB lrw-r--r-- 2026-07-28 11:37:08
Edit Download
43.99 KB lrw-r--r-- 2026-07-28 11:37:08
Edit Download
5.03 KB lrw-r--r-- 2026-07-28 11:37:08
Edit Download
5.97 KB lrw-r--r-- 2026-07-28 11:37:08
Edit Download
9.99 KB lrw-r--r-- 2026-07-28 11:37:08
Edit Download
69.18 KB lrw-r--r-- 2026-07-28 11:37:08
Edit Download
13.93 KB lrw-r--r-- 2026-07-28 11:37:08
Edit Download
17.43 KB lrw-r--r-- 2026-07-28 11:37:08
Edit Download
148.55 KB lrw-r--r-- 2026-07-28 11:37:08
Edit Download
12.84 KB lrw-r--r-- 2026-07-28 11:37:08
Edit Download
24.63 KB lrw-r--r-- 2026-07-28 11:37:08
Edit Download
108.05 KB lrw-r--r-- 2026-07-28 11:37:08
Edit Download
36.36 KB lrw-r--r-- 2026-07-28 11:37:08
Edit Download
7.49 KB lrw-r--r-- 2026-07-28 11:37:08
Edit Download
2.01 KB lrw-r--r-- 2026-07-28 11:37:08
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).
© 2026 0xNothings — Secure File Manager. All rights reserved. Built with ❤️ & Tailwind x Dark UI