add_filter(
'hivepress/v1/templates/site_header_block',
function( $template ) {
if(is_user_logged_in()){
if(hivepress()->get_version('memberships')){
$membership = \HivePress\Models\Membership::query()->filter(['user' => get_current_user_id()])->get_first();
if(!$membership || your_membership_plan_id === $membership->get_plan__id()){
$template = hivepress()->helper->merge_trees(
$template,
[
'blocks' => [
'listing_submit_link' => [
'type' => 'content',
],
],
]
);
}
}
}else{
$template = hivepress()->helper->merge_trees(
$template,
[
'blocks' => [
'listing_submit_link' => [
'type' => 'content',
],
],
]
);
}
return $template;
},
1000
);
Hi,
Please provide more details about the issue you are facing with PHP 8 and we will try to help.