Commit 0067ef69 authored by Kevin Stover's avatar Kevin Stover

Fixing a bug that caused our custom columns code to run on non-NF submission post types.

parent 51a80f4c
Pipeline #699 passed with stage
in 49 seconds
......@@ -184,6 +184,10 @@ final class NF_Admin_Menus_Submissions extends NF_Abstracts_Submenu
public function custom_columns( $column, $sub_id )
global $post_type;
if ( 'nf_sub' !== $post_type ) return false;
$sub = Ninja_Forms()->form()->get_sub( $sub_id );
switch( $column ){
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