woocommerce_analytics_

woocommerce_analytics_

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_analytics_') is found 2 times:

  • /src/Admin/API/Reports/DataStore.php line 1588
    1584
    1585
    1586
    1587
    1588
    1589
    1590
    1591
    1592
    1593
    1594
    * @param array  $query_args The original arguments for the request.
     * @param string $field      The object type.
     * @param string $context    The data store context.
     */
    $ids = apply_filters( 'woocommerce_analytics_' . $field, $ids, $query_args, $field, $this->context );
     
    if ( ! empty( $ids ) ) {
        $placeholders = implode( $separator, array_fill( 0, count( $ids ), '%d' ) );
        /* phpcs:disable WordPress.DB.PreparedSQL.InterpolatedNotPrepared */
        $ids_str = $wpdb->prepare( "{$placeholders}", $ids );
        /* phpcs:enable */
  • /src/Admin/API/Reports/Downloads/DataStore.php line 235
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
             * @param array  $query_args The original arguments for the request.
             * @param string $field      The object type.
             * @param string $context    The data store context.
             */
            $ip_addresses = apply_filters( 'woocommerce_analytics_' . $field, $ip_addresses, $query_args, $field, $this->context );
     
            return implode( "','", $ip_addresses );
        }
        return '';
    }