LLMS_Events_Query::parse_args()
Parses argument data
Contents
Return Return
(void)
Source Source
File: includes/class-llms-events-query.php
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | protected function parse_args() { // Sanitize post & user ids. foreach ( array ( 'actor' , 'actor_not_in' , 'object' , 'object_not_in' , 'include' , 'exclude' ) as $key ) { $this ->arguments[ $key ] = $this ->sanitize_id_array( $this ->arguments[ $key ] ); } foreach ( array ( 'date_before' , 'date_after' ) as $key ) { if ( ! empty ( $this ->arguments[ $key ] ) ) { $date = $this ->arguments[ $key ]; if ( ! is_numeric ( $date ) ) { $date = strtotime ( $date ); } $this ->arguments[ $key ] = date ( 'Y-m-d H:i:s' , $date ); } } } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.36.0 | Introduced. |