Edit Error Page style

The _default_wp_die_handler function is responsible for outputing the CSS you’re seeing, and whilst the callback function is hookable(see wp_die_handler), meaning you could use your own callback in it’s place, it seems a bit much to be copying and modifying the whole handler just to tweak some CSS. There are barely any hooks in this function … Read more

Subtract Using GravityWP Count Plugin

Use $add_number if $sub_number is 0, else use $sub_number: $sorting = null; $paging = array( ‘offset’ => 0, ‘page_size’ => $page_size ); $entries = GFAPI::get_entries($formid, $search_criteria, $sorting, $paging); $countentries = GFAPI::count_entries( $formid, $search_criteria ); if(!$sub_number) { $countentries_add = $add_number + $countentries; if ( !empty( $number_field ) ) { $gwp_count = $add_number; for ($row = 0; … Read more

Execute multiple PHP Snippets causes error?

Maybe I’m misunderstanding something, and it’s still not clear to me how you’re using this code, but it seems like a straightforward PHP error. You can’t declare an independent function with the same name twice. You declare (or define) the function with the function function_name() only once, and then you can call it by name. … Read more