woocommerce_comments()
Output the Review comments template.
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
woocommerce_comments( $comment, $args, $depth );
- $comment(WP_Comment) (обязательный)
- Comment object.
- $args(массив) (обязательный)
- Arguments.
- $depth(int) (обязательный)
- Depth.
Код woocommerce_comments() woocommerce comments WC 9.8.1
function woocommerce_comments( $comment, $args, $depth ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited $GLOBALS['comment'] = $comment; wc_get_template( 'single-product/review.php', array( 'comment' => $comment, 'args' => $args, 'depth' => $depth, ) ); }