Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Products Is Empty: Filter "use choices" and "admin label" properties #1595

Open
jakejackson1 opened this issue Jan 6, 2025 · 0 comments
Open
Labels

Comments

@jakejackson1
Copy link
Member

jakejackson1 commented Jan 6, 2025

Add variable filters and pass them to the GFCommon::get_product_fields() method when checking if the product table is empty:

$use_value       = (bool) apply_filters( 'gfpdf_show_field_value', false, $this->field, '' ); /* Set to `true` to show a field's value instead of the label */
$use_admin_label = (bool) apply_filters( 'gfpdf_use_admin_label', false, $this->field, '' ); /* Set to `true` to use the admin label */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant