Hide row with “post title”
-
Hi
I try to do this
add_filter(‘gfexcel_renderer_hide_row’, function ($hide, $row) {
foreach ($row as $column) {
echo $column;
if ($column->getFieldId() === 9 && $column->getValue() !== $posttitle ) {
return true; // hide rows with an empty field 1
}
}
return $hide; // don’t forget me!
}, 10, 2);It work great with
$posttitle = “some title”
but i have no idea how to get $posttitle form the page where my download button is.
Any leads?
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Hide row with “post title”’ is closed to new replies.