Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
PUM_Conditions::add_conditions( array $conditions = array() )
Description Description
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
Parameters Parameters
- $conditions
-
(Optional)
Default value: array()
Source Source
File: classes/Conditions.php
public function add_conditions( $conditions = array() ) { foreach ( $conditions as $key => $condition ) { if ( empty( $condition['id'] ) && ! is_numeric( $key ) ) { $condition['id'] = $key; } $this->add_condition( $condition ); } }
Expand full source code Collapse full source code View on Trac