Commit 795b6605 authored by Stefan van den Dungen Gronovius's avatar Stefan van den Dungen Gronovius Committed by Kevin Stover

Add extra $subid param to the ninja_forms_custom_columns filter (#2012)

Why is it necessary?
We have a plugin that makes it possible to create extra column on the
fly for the wordpress overviews, including the Ninja Forms overviews.
If we would have a little more context (submission id) in the filter,
we could have some better control about how to show the correct value
in a custom column.

What is done?
We’ve added the available submission id to the filter.
parent 79328b46
......@@ -175,7 +175,7 @@ class NF_Admin_CPT_Submission
if( is_numeric( $column ) ){
$value = $sub->get_field_value( $column );
$field = Ninja_Forms()->form()->get_field( $column );
echo apply_filters( 'ninja_forms_custom_columns', $value, $field );
echo apply_filters( 'ninja_forms_custom_columns', $value, $field, $sub_id );
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment