woocommerce_analytics_

woocommerce_analytics_

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_analytics_') is found 2 times:

  • /src/Admin/API/Reports/DataStore.php line 1588
    		 * @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
    			 * @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 '';
    	}