You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @return array Block attributes merged with defaults.
9605
+
*/
9606
+
private function parse_attributes($attributes)
9607
+
{
9608
+
}
9556
9609
/**
9557
9610
* Overwrite parent method to prevent script registration.
9558
9611
*
@@ -9568,17 +9621,6 @@ protected function register_block_type_assets()
9568
9621
protected function get_block_type_uses_context()
9569
9622
{
9570
9623
}
9571
-
/**
9572
-
* Filter the output from wc_get_rating_html.
9573
-
*
9574
-
* @param string $html Star rating markup. Default empty string.
9575
-
* @param float $rating Rating being shown.
9576
-
* @param int $count Total number of ratings.
9577
-
* @return string
9578
-
*/
9579
-
public function filter_rating_html($html, $rating, $count)
9580
-
{
9581
-
}
9582
9624
/**
9583
9625
* Include and render the block.
9584
9626
*
@@ -9808,15 +9850,6 @@ class ProductStockIndicator extends \Automattic\WooCommerce\Blocks\BlockTypes\Ab
9808
9850
* @var string
9809
9851
*/
9810
9852
protected $api_version = '2';
9811
-
/**
9812
-
* Get block supports. Shared with the frontend.
9813
-
* IMPORTANT: If you change anything here, make sure to update the JS file too.
9814
-
*
9815
-
* @return array
9816
-
*/
9817
-
protected function get_block_type_supports()
9818
-
{
9819
-
}
9820
9853
/**
9821
9854
* Register script and style assets for the block type before it is registered.
9822
9855
*
@@ -10027,6 +10060,14 @@ class RatingFilter extends \Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlo
10027
10060
*/
10028
10061
protected $block_name = 'rating-filter';
10029
10062
const RATING_QUERY_VAR = 'rating_filter';
10063
+
/**
10064
+
* Get the frontend script handle for this block type.
10065
+
*
10066
+
* @param string $key Data to get, or default to everything.
10067
+
*/
10068
+
protected function get_block_type_script($key = null)
10069
+
{
10070
+
}
10030
10071
}
10031
10072
/**
10032
10073
* RelatedProducts class.
@@ -10104,9 +10145,10 @@ private function is_related_products_block($block)
10104
10145
* Get related products ids.
10105
10146
* The logic is copied from the core function woocommerce_related_products. https://github.com/woocommerce/woocommerce/blob/ca49caabcba84ce9f60a03c6d3534ec14b350b80/plugins/woocommerce/includes/wc-template-functions.php/#L2039-L2074
10106
10147
*
10148
+
* @param number $product_per_page Products per page.
10107
10149
* @return array Products ids.
10108
10150
*/
10109
-
private function get_related_products_ids()
10151
+
private function get_related_products_ids($product_per_page = 5)
10110
10152
{
10111
10153
}
10112
10154
}
@@ -10297,6 +10339,14 @@ protected function enqueue_data(array $stock_statuses = [])
10297
10339
public static function get_stock_status_query_var_values()
10298
10340
{
10299
10341
}
10342
+
/**
10343
+
* Get the frontend script handle for this block type.
10344
+
*
10345
+
* @param string $key Data to get, or default to everything.
10346
+
*/
10347
+
protected function get_block_type_script($key = null)
10348
+
{
10349
+
}
10300
10350
}
10301
10351
/**
10302
10352
* StoreNotices class.
@@ -12338,6 +12388,12 @@ class ShippingController
12338
12388
* @var AssetDataRegistry
12339
12389
*/
12340
12390
protected $asset_data_registry;
12391
+
/**
12392
+
* Whether local pickup is enabled.
12393
+
*
12394
+
* @var bool
12395
+
*/
12396
+
private $local_pickup_enabled;
12341
12397
/**
12342
12398
* Constructor.
12343
12399
*
@@ -14479,6 +14535,16 @@ private function process_payment(\WP_REST_Request $request, \Automattic\WooComme
14479
14535
private function get_request_payment_method_id(\WP_REST_Request $request)
14480
14536
{
14481
14537
}
14538
+
/**
14539
+
* Gets the chosen payment method title from the request.
0 commit comments