• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Easy Digital Downloads a2z

Easy Digital Downloads a2z

Easy Digital Downloads a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / edd_filter_where_older_than_week() – Filter where older than one week

You appear to be a bot. Output may be restricted

Description

Filter where older than one week

Usage

$string = edd_filter_where_older_than_week( $where );

Parameters

$where
( string ) optional – Where clause

Returns

string $where Modified where clause

Source

File name: easy-digital-downloads/includes/payments/functions.php


Lines:

1 to 7 of 7
function edd_filter_where_older_than_week( $where = '' ) {
  // Payments older than one week
  $start = date( 'Y-m-d', strtotime( '-7 days' ) );
  $where .= " AND post_date <= '{$start}'";
  return $where;
}
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 23rd February 2021

Primary Sidebar

Information

Function name: edd_filter_where_older_than_week
Plugin ref: Easy Digital Downloads
Version: 2.9.26
Sourcefile: includes/payments/functions.php
File ref: includes/payments/functions.php
Deprecated?: No
API Letters: E,F,O,T,W

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 5.6.2
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  edd.wp-a2z.org
© Copyright Easy Digital Downloads a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites