woocommerce_report_recent_reviews_query_from хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_report_recent_reviews_query_from', 'filter_function_name_8394' ); function filter_function_name_8394( $string ){ // filter... return $string; }
- $string
- -
Где вызывается хук
woocommerce_report_recent_reviews_query_from
woocommerce/includes/admin/class-wc-admin-dashboard.php 307-318
$query_from = apply_filters( 'woocommerce_report_recent_reviews_query_from', "FROM {$wpdb->comments} comments LEFT JOIN {$wpdb->posts} posts ON (comments.comment_post_ID = posts.ID) WHERE comments.comment_approved = '1' AND comments.comment_type = 'review' AND posts.post_password = '' AND posts.post_type = 'product' AND comments.comment_parent = 0 ORDER BY comments.comment_date_gmt DESC LIMIT 5" );