Skip to content

Conversation

@saifsultanc
Copy link
Contributor

@saifsultanc saifsultanc commented Mar 1, 2025

Context

⛑️ Ticket(s): https://secure.helpscout.net/conversation/2850980281/78195

Summary

Snippet to add the is in functionality to a query coming via Google Sheets.

Related to this https://github.com/gravitywiz/gc-google-sheets/pull/163

@github-actions
Copy link

github-actions bot commented Mar 1, 2025

Warnings
⚠️ When ready, don't forget to request reviews on this pull request from your fellow wizards.

Generated by 🚫 dangerJS against 4d061ba

@saifsultanc saifsultanc changed the title gcgs-custom-where-clause.php: Added new snippet for custom \where\ clause. gcgs-custom-where-clause.php: Added new snippet for custom where clause. Mar 1, 2025
*/
add_filter( 'gcgs_gppa_build_gviz_where_clause', function( $clause, $clauses, $value, $column_letter, $operator, $args ) {
$conditions = array();

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pending the filter addition

I noticed that this sometimes errored when $value is an empty string

Suggested change
if ( empty( $value ) ) {
return $clause;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants