ing) - Custom field key. 'meta_value', //(string) - Custom field value. 'meta_value_num', //(number) - Custom field value. 'meta_compare', //(string) - Operator to test the 'meta_value'. Possible values are '!=', '>', '>=', '<', or ='. Default value is '='. 'meta_query', //(array) - Custom field parameters (available with Version 3.1). //////Permission Parameters - Display published posts, as well as private posts, if the user has the appropriate capability: //http://codex.wordpress.org/Class_Reference/WP_Query#Permission_Parameters 'perm', //(string) Possible values are 'readable', 'editable' //////Caching Parameters //http://codex.wordpress.org/Class_Reference/WP_Query#Caching_Parameters //NOTE Caching is a good thing. Setting these to false is generally not advised. 'cache_results', //(bool) Default is true - Post information cache. 'update_post_term_cache', //(bool) Default is true - Post meta information cache. 'update_post_meta_cache', //(bool) Default is true - Post term information cache. 'no_found_rows', //(bool) Default is false. WordPress uses SQL_CALC_FOUND_ROWS in most queries in order to implement pagination. Even when you donтАЩt need pagination at all. By Setting this parameter to true you are telling wordPress not to count the total rows and reducing load on the DB. Pagination will NOT WORK when this parameter is set to true. For more information see: http://flavio.tordini.org/speed-up-wordpress-get_posts-and-query_posts-functions //////Search Parameter //http://codex.wordpress.org/Class_Reference/WP_Query#Search_Parameter 's', //(string) - Passes along the query string variable from a search. For example usage see: http://www.wprecipes.com/how-to-display-the-number-of-results-in-wordpress-search 'exact', //(bool) - flag to make it only match whole titles/posts - Default value is false. For more information see: https://gist.github.com/2023628#gistcomment-285118 'sentence', //(bool) - flag to make it do a phrase search - Default value is false. For more information see: https://gist.github.com/2023628#gistcomment-285118 //////Post Field Parameters //For more info see: http://codex.wordpress.org/Class_Reference/WP_Query#Return_Fields_Parameter //also https://gist.github.com/luetkemj/2023628/#comment-1003542 'fields', ); return $args; } /** * Recursive sanitation for an array * * @param $array * * @return mixed */ public static function recursive_sanitize_text_field($array) { if (!\is_array($array)) { return sanitize_text_field($array); } foreach ($array as $key => &$value) { if (\is_array($value)) { $value = self::recursive_sanitize_text_field($value); } else { $value = sanitize_text_field($value); } } return $array; } /** * Convert ACF Post Objects to IDS * * @param object|array|void $input * * @return array|void */ public static function convert_acf_post_objects_to_ids($input) { if (\is_array($input)) { if (!empty($input) && \is_object($input[0])) { return \array_map(function ($post) { return $post->ID; }, $input); } return $input; } elseif (\is_object($input)) { return $input->ID ?? ''; } return $input; } }
Fatal error: Trait 'DynamicContentForElementor\Wp' not found in /home/sportuga/public_html/wp-content/plugins/dynamic-content-for-elementor/class/helper.php on line 15