'Opportunities','public'=>false,'show_ui'=>true,'show_in_rest'=>false,'supports'=>['title','editor','custom-fields']]); register_post_type('pv_sourcing_request', ['label'=>'Sourcing Requests','public'=>false,'show_ui'=>true,'show_in_rest'=>false,'supports'=>['title','editor','custom-fields'],'capability_type'=>'post']); } add_action('pv_sync', 'pv_sync_notices'); add_action('pv_sync_continue', 'pv_sync_notices'); add_action('init', function () { if (!wp_next_scheduled('pv_sync')) wp_schedule_event(time() + 60, 'hourly', 'pv_sync'); }); add_action('admin_menu', function () { add_management_page('PANVERIQ Feed', 'PANVERIQ Feed', 'manage_options', 'panveriq-feed', function () { $status = get_option('pv_last_sync', []); echo '

PANVERIQ Feed

World Bank procurement notices in African markets. Automatic sync is scheduled hourly while WordPress cron is running.

'; echo '

Last run: '.esc_html($status['at'] ?? 'Never').' · Examined: '.esc_html($status['examined'] ?? 0).' · Saved: '.esc_html($status['saved'] ?? 0).'

'; if (empty($status['at']) || strtotime($status['at']) < time() - 2 * DAY_IN_SECONDS) echo '

Feed is stale or has never synced. Check WP-Cron and run a manual sync before promoting this page.

'; if (!empty($status['error'])) echo '

Source error: '.esc_html($status['error']).'

'; if (!empty($status['more'])) echo '

More source pages remain. The next batch is scheduled automatically; next offset: '.esc_html($status['next_offset'] ?? 0).'.

'; elseif (empty($status['error']) && !empty($status['at'])) echo '

Source pagination completed. Eligible notices are published automatically; duplicate source IDs are updated.

'; if (!empty($status['at']) && empty($status['saved']) && !empty($status['examined'])) echo '

No eligible African notices were imported. Check the source response, date fields and filters before promoting the feed.

'; $alert_status = get_option('pv_last_alert_run', []); echo '

Last alert run: '.esc_html($alert_status['at'] ?? 'Never').' · Accounts checked: '.esc_html($alert_status['users'] ?? 0).' · Accepted for delivery: '.esc_html($alert_status['sent'] ?? 0).' · Failed: '.esc_html($alert_status['failed'] ?? 0).'

'; echo '
'; wp_nonce_field('pv_run_sync'); submit_button('Run feed sync now'); echo '
'; echo '

Registration: '.(get_option('users_can_register') ? 'Enabled' : 'Disabled').' · Contact inbox: '.((defined('PANVERIQ_CONTACT_EMAIL') && is_email(PANVERIQ_CONTACT_EMAIL)) ? 'Configured' : 'Not configured').'

'; }); }); add_action('admin_post_pv_run_sync', function () { if (!current_user_can('manage_options')) wp_die('Forbidden','',['response'=>403]); check_admin_referer('pv_run_sync'); pv_sync_notices(); wp_safe_redirect(admin_url('tools.php?page=panveriq-feed')); exit; }); function pv_sync_notices() { $lock = 'pv_sync_lock'; if (get_transient($lock)) return; set_transient($lock, 1, 10 * MINUTE_IN_SECONDS); $today = gmdate('Y-m-d'); $cursor = get_option('pv_wb_cursor', []); $anchor = is_array($cursor) && !empty($cursor['date']) ? $cursor['date'] : $today; if (!preg_match('/^\d{4}-\d{2}-\d{2}$/', $anchor)) $anchor = $today; $offset = is_array($cursor) ? max(0, (int)($cursor['offset'] ?? 0)) : 0; $start_offset = $offset; $count = 0; $seen = 0; $error = ''; $more = false; // Bound each run and resume remaining pages instead of dropping them. for ($batch = 0; $batch < 10; $batch++) { $url = add_query_arg(['format'=>'json','rows'=>100,'os'=>$offset,'srt'=>'submission_deadline_date','order'=>'asc','notice_type_exact'=>'Invitation for Bids^Invitation for Prequalification^Request for Expression of Interest','deadline_strdate'=>$anchor], PV_SOURCE); $response = wp_remote_get($url, ['timeout'=>25, 'headers'=>['Accept'=>'application/json']]); if (is_wp_error($response) || wp_remote_retrieve_response_code($response) !== 200) { $error = is_wp_error($response) ? $response->get_error_message() : 'HTTP '.wp_remote_retrieve_response_code($response); break; } $data = json_decode(wp_remote_retrieve_body($response), true); if (!is_array($data) || !isset($data['procnotices']) || !is_array($data['procnotices'])) { $error = 'Invalid source response'; break; } foreach ($data['procnotices'] as $n) { $seen++; $id = isset($n['id']) ? sanitize_text_field($n['id']) : ''; $country = isset($n['project_ctry_name']) ? trim($n['project_ctry_name']) : ''; $raw_deadline = trim((string)($n['submission_deadline_date'] ?? '')); $deadline_time = $raw_deadline ? strtotime($raw_deadline) : false; $deadline = $deadline_time ? gmdate('Y-m-d', $deadline_time) : ''; if (!$id || !in_array($country, PV_COUNTRIES, true) || !preg_match('/^\d{4}-\d{2}-\d{2}$/', $deadline) || $deadline < $today || !in_array(($n['notice_status'] ?? ''), ['Published','Revised'], true)) continue; $title = sanitize_text_field($n['bid_description'] ?? $n['project_name'] ?? 'Procurement opportunity'); $existing = get_posts(['post_type'=>'pv_opportunity','post_status'=>'any','meta_key'=>'pv_source_id','meta_value'=>$id,'fields'=>'ids','posts_per_page'=>1]); $post = ['post_type'=>'pv_opportunity','post_status'=>'publish','post_title'=>$title,'post_content'=>wp_kses_post($n['notice_text'] ?? ''),'post_author'=>1]; if ($existing) $post['ID'] = $existing[0]; $post_id = wp_insert_post($post, true); if (is_wp_error($post_id)) { $error = $post_id->get_error_message(); continue; } update_post_meta($post_id, 'pv_source_id', $id); if (!$existing) update_post_meta($post_id, 'pv_first_seen', gmdate('Y-m-d')); update_post_meta($post_id, 'pv_country', sanitize_text_field($country)); update_post_meta($post_id, 'pv_deadline', $deadline); update_post_meta($post_id, 'pv_notice_type', sanitize_text_field($n['notice_type'] ?? '')); update_post_meta($post_id, 'pv_project', sanitize_text_field($n['project_name'] ?? '')); update_post_meta($post_id, 'pv_notice_date', sanitize_text_field($n['noticedate'] ?? '')); update_post_meta($post_id, 'pv_checked_at', gmdate('c')); update_post_meta($post_id, 'pv_source_url', esc_url_raw('https://projects.worldbank.org/en/projects-operations/procurement-detail/'.rawurlencode($id))); $count++; } $offset += count($data['procnotices']); $total = isset($data['total']) && is_numeric($data['total']) ? (int)$data['total'] : null; $more = count($data['procnotices']) === 100 && ($total === null || $offset < $total); if (!$more) break; } if ($error || $more) { update_option('pv_wb_cursor', ['date'=>$anchor, 'offset'=>$offset], false); if (!wp_next_scheduled('pv_sync_continue')) wp_schedule_single_event(time() + 5 * MINUTE_IN_SECONDS, 'pv_sync_continue'); } else { delete_option('pv_wb_cursor'); wp_clear_scheduled_hook('pv_sync_continue'); } update_option('pv_last_sync', ['at'=>gmdate('c'),'examined'=>$seen,'saved'=>$count,'error'=>$error,'more'=>$more,'start_offset'=>$start_offset,'next_offset'=>$offset], false); delete_transient($lock); } function pv_alert_query($keyword, $country, $page = 1) { $recent = gmdate('Y-m-d', time() - 7 * DAY_IN_SECONDS); $meta = [ ['key'=>'pv_deadline','value'=>gmdate('Y-m-d'),'compare'=>'>='], ['key'=>'pv_first_seen','value'=>$recent,'compare'=>'>='], ]; if ($country) $meta[] = ['key'=>'pv_country','value'=>$country,'compare'=>'=']; return new WP_Query(['post_type'=>'pv_opportunity','post_status'=>'publish','s'=>$keyword,'posts_per_page'=>100,'paged'=>$page,'meta_key'=>'pv_first_seen','orderby'=>'meta_value','order'=>'DESC','meta_query'=>$meta]); } function pv_search_query($keyword, $country, $limit = 20, $page = 1) { $meta = [['key'=>'pv_deadline','value'=>gmdate('Y-m-d'),'compare'=>'>=']]; if ($country) $meta[] = ['key'=>'pv_country','value'=>$country,'compare'=>'=']; return new WP_Query(['post_type'=>'pv_opportunity','post_status'=>'publish','s'=>$keyword,'posts_per_page'=>$limit,'paged'=>$page,'meta_key'=>'pv_deadline','orderby'=>'meta_value','order'=>'ASC','meta_query'=>$meta]); } add_shortcode('panveriq_opportunities', function ($atts) { $atts = shortcode_atts(['country'=>''], $atts); $fixed = sanitize_text_field($atts['country']); $country = $fixed ?: sanitize_text_field(wp_unslash($_GET['pv_country'] ?? '')); if ($country && !in_array($country, PV_COUNTRIES, true)) $country = ''; $keyword = sanitize_text_field(wp_unslash($_GET['pv_q'] ?? '')); $page = max(1, min(10000, absint($_GET['pv_page'] ?? 1))); $q = pv_search_query($keyword, $country, 20, $page); $status = get_option('pv_last_sync', []); ob_start(); echo '
'; if (!$fixed) echo '

African government tenders and opportunities

Search available notices by keyword and country. Check closing dates and official sources, then save a search for daily matching alerts.

Zimbabwe tenders · Tanzania tenders · Membership plans

'; echo '
'; if ($fixed) echo ''; else { echo ' '; } echo '
'; echo '

'.esc_html((string)$q->found_posts).' matching opportunities'; if (!empty($status['at'])) echo ' · World Bank feed checked '.esc_html($status['at']); echo '

'; if (empty($status['at']) || strtotime($status['at']) < time() - 2 * DAY_IN_SECONDS || !empty($status['error'])) echo '

Feed update needs attention. Please verify each notice at its original source before acting.

'; while ($q->have_posts()) { $q->the_post(); $id=get_the_ID(); echo '

'.esc_html(get_the_title()).'

'.esc_html(get_post_meta($id,'pv_country',true)).' · '.esc_html(get_post_meta($id,'pv_notice_type',true)).' · Closes '.esc_html(get_post_meta($id,'pv_deadline',true)).'

'; echo '

Project / buyer: '.esc_html(get_post_meta($id,'pv_project',true)).'

'; if (get_post_meta($id,'pv_source_name',true)) echo '

Source: '.esc_html(get_post_meta($id,'pv_source_name',true)).'

'; if (get_post_meta($id,'pv_reference',true)) echo '

Reference: '.esc_html(get_post_meta($id,'pv_reference',true)).'

'; echo ''.(get_post_meta($id,'pv_source_name',true)==='Tanzania PPRA NeST (OCDS)' ? 'Open official source data' : 'Open official notice').''; if (get_post_meta($id,'pv_source_license',true)) echo ' · Source licence'; echo pv_shortlist_button($id).'
'; } wp_reset_postdata(); if ($page > 1) echo 'Previous '; if ($page < $q->max_num_pages && $page < 10000) echo 'Next'; echo '

Sources include World Bank notices (CC BY 4.0), Kenya PPRA/PPIP, Zimbabwe PRAZ eGP, Tanzania PPRA NeST (CC BY-SA 4.0), South Africa National Treasury OCDS (PDDL 1.0), and individually checked buyer notices. Coverage is partial; verify each official source.

'; if (is_user_logged_in()) echo pv_save_search_form($keyword, $country); else echo '

Sign in to save this search and receive alerts.

'; echo '
'; return ob_get_clean(); }); function pv_save_search_form($keyword, $country) { return '
'.wp_nonce_field('pv_save_search','_pv_nonce',true,false).'
'; } add_action('admin_post_pv_save_search', function () { if (!is_user_logged_in() || !wp_verify_nonce(sanitize_text_field(wp_unslash($_POST['_pv_nonce'] ?? '')), 'pv_save_search')) wp_die('Invalid request','',['response'=>403]); $user_id = get_current_user_id(); $keyword = substr(sanitize_text_field(wp_unslash($_POST['pv_q'] ?? '')),0,120); $country = sanitize_text_field(wp_unslash($_POST['pv_country'] ?? '')); if ($country && !in_array($country, PV_COUNTRIES, true)) wp_die('Invalid country','',['response'=>400]); if (!$keyword && !$country) wp_die('Enter a keyword or country first','',['response'=>400]); $saved = get_user_meta($user_id,'pv_saved_searches',true); if (!is_array($saved)) $saved=[]; $key = hash('sha256', strtolower($keyword).'|'.$country); if (!isset($saved[$key]) && count($saved) >= pv_search_limit($user_id)) wp_die('Saved-search limit reached for your plan.','',['response'=>403]); $saved[$key] = ['keyword'=>$keyword,'country'=>$country,'created'=>gmdate('c')]; update_user_meta($user_id,'pv_saved_searches',$saved);pv_metric_record('saved_search'); wp_safe_redirect(site_url('/saved-searches/?saved=1')); exit; }); add_action('admin_post_pv_delete_search', function () { if (!is_user_logged_in() || !wp_verify_nonce(sanitize_text_field(wp_unslash($_POST['_pv_nonce'] ?? '')), 'pv_delete_search')) wp_die('Invalid request','',['response'=>403]); $saved=get_user_meta(get_current_user_id(),'pv_saved_searches',true); if (!is_array($saved)) $saved=[]; $key=sanitize_text_field(wp_unslash($_POST['key'] ?? '')); unset($saved[$key]); update_user_meta(get_current_user_id(),'pv_saved_searches',$saved); wp_safe_redirect(site_url('/saved-searches/')); exit; }); add_shortcode('panveriq_saved_searches', function () { if (!is_user_logged_in()) return '

Please sign in to manage alerts.

'; $saved=get_user_meta(get_current_user_id(),'pv_saved_searches',true); if (!is_array($saved)) $saved=[]; $html='

Saved searches and daily alerts

Your account: up to '.pv_search_limit().' saved searches. Emails are sent when new matching notices are found.

Pro workspace

'; foreach ($saved as $key=>$s) { $html.='
'.esc_html(($s['keyword'] ?: 'All sectors').' · '.($s['country'] ?: 'All Africa')).'
'.wp_nonce_field('pv_delete_search','_pv_nonce',true,false).'
'; } if (!$saved) $html.='

No saved searches yet. Search opportunities, then save a country or keyword alert.

'; return $html; }); add_action('pv_daily_alerts', function () { $checked = 0; $sent_count = 0; $failed_count = 0; foreach (get_users(['fields'=>['ID','user_email'], 'meta_key'=>'pv_saved_searches']) as $user) { $saved = get_user_meta($user->ID,'pv_saved_searches',true); if (!is_array($saved) || !$saved) continue; $checked++; $delivered = get_user_meta($user->ID,'pv_alerted_notice_ids',true); if (!is_array($delivered)) $delivered=[]; $already = array_fill_keys($delivered,true); $lines=[]; $new_ids=[]; foreach ($saved as $search) { $keyword=sanitize_text_field($search['keyword'] ?? ''); $country=sanitize_text_field($search['country'] ?? ''); for ($page = 1; $page <= 5; $page++) { $q = pv_alert_query($keyword, $country, $page); foreach ($q->posts as $post) { if (isset($already[$post->ID]) || isset($new_ids[$post->ID])) continue; $new_ids[$post->ID]=true; $lines[]=get_the_title($post->ID).' | '.get_post_meta($post->ID,'pv_country',true).' | Closes '.get_post_meta($post->ID,'pv_deadline',true).' | '.get_post_meta($post->ID,'pv_source_url',true); if (count($lines)>=30) break 3; } if ($page >= $q->max_num_pages) break; } } if ($lines) { $message="New African opportunities matching your saved searches:\n\n".implode("\n\n",$lines)."\n\nManage alerts: ".site_url('/saved-searches/'); if (wp_mail($user->user_email,'PANVERIQ: '.count($lines).' matching opportunities',$message)) { update_user_meta($user->ID,'pv_alerted_notice_ids',array_slice(array_merge($delivered,array_keys($new_ids)),-1000)); update_user_meta($user->ID,'pv_last_alert_accepted_at',gmdate('c')); $sent_count++; } else { $failed_count++; } } } update_option('pv_last_alert_run', ['at'=>gmdate('c'),'users'=>$checked,'sent'=>$sent_count,'failed'=>$failed_count], false); }); add_shortcode('panveriq_join', function () { $html = '

Join PANVERIQ for free

Search African tender notices and send product sourcing inquiries across Africa. Create an account to save up to 20 searches and receive daily alerts for newly imported matches.

Product sourcing inquiries can be submitted without an account.

'; if (is_user_logged_in()) return $html.'

You are signed in. Manage your alerts.

'; if (!get_option('users_can_register')) return $html.'

Registration is being prepared. Please check back soon.

'; return $html.'

Create your free account · Already registered? Sign in

'; }); // Kept as a harmless alias for sites that already use the earlier shortcode. add_shortcode('panveriq_subscription', function () { return do_shortcode('[panveriq_join]'); }); add_shortcode('panveriq_about', function () { return '

About PANVERIQ

PANVERIQ connects companies worldwide with African tender notices and product sourcing inquiries. It has two clear paths: find work through tender discovery and seek supply through product or service inquiries.

Our tender discovery pilot brings source-linked procurement notices into a searchable view, with free accounts for saved searches and daily alerts. Buyers can also submit a product or service requirement for manual review and a possible introduction to a relevant African connection.

The tender feed is an initial source, not complete Africa-wide coverage. A sourcing inquiry is not an offer of stock or a guarantee of a supplier. Availability, supplier checks, transaction requirements and commercial terms are assessed case by case.

Explore tenders · Source in Africa · Contact us

'; }); add_shortcode('panveriq_sourcing', function () { $html='

Source products and suppliers from Africa

Looking for a product, service or supplier in Africa? Describe your requirement, quantity, destination and timeline. PANVERIQ will review it and contact you if we can help identify a suitable connection. Availability, supplier checks and terms are confirmed separately.

'; $html.='
'.wp_nonce_field('pv_sourcing','_pv_nonce',true,false).''; $html.='

'; $html.='

'; $html.='

'; $privacy_url = get_privacy_policy_url(); $html.='

We use your details to review and respond to this inquiry.'.($privacy_url ? ' Read our Privacy Policy.' : '').'

'; $html.='

'; if (isset($_GET['sourcing'])) $html.='

'.($_GET['sourcing']==='received'?'Your request was received for review. We will contact you if we can help.':'The request could not be saved. Please try again later.').'

'; return $html.'
'; }); add_action('admin_post_nopriv_pv_sourcing','pv_handle_sourcing'); add_action('admin_post_pv_sourcing','pv_handle_sourcing'); function pv_handle_sourcing() { if (!wp_verify_nonce(sanitize_text_field(wp_unslash($_POST['_pv_nonce'] ?? '')),'pv_sourcing')) wp_die('Invalid request','',['response'=>403]); if (!empty($_POST['pv_website'])) wp_die('Invalid request','',['response'=>400]); $name=substr(sanitize_text_field(wp_unslash($_POST['pv_name'] ?? '')),0,100); $email=sanitize_email(wp_unslash($_POST['pv_email'] ?? '')); $organisation=substr(sanitize_text_field(wp_unslash($_POST['pv_organisation'] ?? '')),0,150); $category=sanitize_key(wp_unslash($_POST['pv_category'] ?? '')); $product=substr(sanitize_text_field(wp_unslash($_POST['pv_product'] ?? '')),0,150); $quantity=substr(sanitize_text_field(wp_unslash($_POST['pv_quantity'] ?? '')),0,100); $destination=substr(sanitize_text_field(wp_unslash($_POST['pv_destination'] ?? '')),0,100); $requirement=substr(sanitize_textarea_field(wp_unslash($_POST['pv_requirement'] ?? '')),0,2000); if (!$name || !is_email($email) || !$product || !$destination || !$requirement || !in_array($category,['minerals','agriculture','raw_materials','equipment','manufactured','services','other'],true) || ($_POST['pv_consent'] ?? '')!=='1') wp_die('Please complete all required fields','',['response'=>400]); $rate_key='pv_sourcing_'.hash('sha256',strtolower($email)); if (get_transient($rate_key)) wp_die('Please wait before sending another request',429); $id=wp_insert_post(['post_type'=>'pv_sourcing_request','post_status'=>'private','post_title'=>$product.' · '.$destination,'post_content'=>$requirement,'post_author'=>get_current_user_id()],true); if (is_wp_error($id)) { wp_safe_redirect(add_query_arg('sourcing','error',site_url('/source-in-africa/'))); exit; } update_post_meta($id,'pv_request_product',$product); update_post_meta($id,'pv_request_quantity',$quantity); update_post_meta($id,'pv_request_destination',$destination); update_post_meta($id,'pv_request_name',$name); update_post_meta($id,'pv_request_email',$email); update_post_meta($id,'pv_request_organisation',$organisation); update_post_meta($id,'pv_request_category',$category); update_post_meta($id,'pv_request_consent_at',gmdate('c')); set_transient($rate_key,1,10*MINUTE_IN_SECONDS); if (defined('PANVERIQ_CONTACT_EMAIL') && is_email(PANVERIQ_CONTACT_EMAIL)) { $notice = "New PANVERIQ sourcing inquiry\n\nProduct: ".$product."\nDestination: ".$destination."\nName: ".$name."\nEmail: ".$email."\n\nReview the private request in WordPress: ".admin_url('post.php?post='.$id.'&action=edit'); wp_mail(PANVERIQ_CONTACT_EMAIL, 'PANVERIQ sourcing request #'.$id, $notice, ['Reply-To: '.$email]); } wp_safe_redirect(add_query_arg('sourcing','received',site_url('/source-in-africa/'))); exit; } add_shortcode('panveriq_advertise', function () { return '

Advertise with PANVERIQ

We are developing clearly labelled sponsorship space for organisations relevant to African tenders, products, sourcing and cross-border business connections.

Sponsored content will be identified as advertising and will not change official notice details or organic search rankings. Availability and rates are not yet final.

Ask about advertising

'; }); add_shortcode('panveriq_contact', function () { $html = '

Contact PANVERIQ

Questions about tender discovery, sourcing, partnerships or advertising? Send an inquiry below. For a detailed product need, use the Source in Africa form.

'; $topics = ['General inquiry'=>'general','Tender data or source'=>'source','Product sourcing'=>'sourcing','Partnership'=>'partnership','Advertising'=>'advertising']; $selected = sanitize_key(wp_unslash($_GET['topic'] ?? '')); $html .= '
'.wp_nonce_field('pv_contact','_pv_nonce',true,false).'

'; $privacy_url=get_privacy_policy_url(); $html.='

We use your details to review and respond to this inquiry.'.($privacy_url?' Read our Privacy Policy.':'').'

'; if (isset($_GET['contact'])) $html.='

'.($_GET['contact']==='received'?'Thank you. Your inquiry was received for review.':'The inquiry could not be saved. Please try again later.').'

'; return $html.'
'; }); add_action('admin_post_nopriv_pv_contact','pv_handle_contact'); add_action('admin_post_pv_contact','pv_handle_contact'); function pv_handle_contact() { if (!wp_verify_nonce(sanitize_text_field(wp_unslash($_POST['_pv_nonce'] ?? '')),'pv_contact')) wp_die('Invalid request','',['response'=>403]); if (!empty($_POST['pv_website'])) wp_die('Invalid request','',['response'=>400]); $name = substr(sanitize_text_field(wp_unslash($_POST['pv_name'] ?? '')),0,100); $email = sanitize_email(wp_unslash($_POST['pv_email'] ?? '')); $message = substr(sanitize_textarea_field(wp_unslash($_POST['pv_message'] ?? '')),0,4000); $topics = ['general','source','sourcing','partnership','advertising']; $topic = sanitize_key(wp_unslash($_POST['pv_topic'] ?? 'general')); if (!$name || !is_email($email) || !$message || !in_array($topic,$topics,true) || ($_POST['pv_consent'] ?? '')!=='1') wp_die('Please complete all required fields','',['response'=>400]); $rate_key='pv_contact_'.hash('sha256',strtolower($email)); if (get_transient($rate_key)) wp_die('Please wait before sending another inquiry',429); $id=wp_insert_post(['post_type'=>'pv_sourcing_request','post_status'=>'private','post_title'=>'Contact: '.$topic.' · '.$name,'post_content'=>$message,'post_author'=>get_current_user_id()],true); if (is_wp_error($id)) { wp_safe_redirect(add_query_arg('contact','error',site_url('/contact-panveriq/'))); exit; } update_post_meta($id,'pv_request_name',$name); update_post_meta($id,'pv_request_email',$email); update_post_meta($id,'pv_request_category','contact'); update_post_meta($id,'pv_contact_topic',$topic); update_post_meta($id,'pv_request_consent_at',gmdate('c')); set_transient($rate_key,1,10*MINUTE_IN_SECONDS); if (defined('PANVERIQ_CONTACT_EMAIL') && is_email(PANVERIQ_CONTACT_EMAIL)) { $notice = "New PANVERIQ contact inquiry\n\nTopic: ".$topic."\nName: ".$name."\nEmail: ".$email."\n\nReview the private inquiry in WordPress: ".admin_url('post.php?post='.$id.'&action=edit'); wp_mail(PANVERIQ_CONTACT_EMAIL, 'PANVERIQ contact inquiry #'.$id, $notice, ['Reply-To: '.$email]); } wp_safe_redirect(add_query_arg('contact','received',site_url('/contact-panveriq/'))); exit; } // South African National Treasury OCDS releases. One bounded page per run. add_action('init', function () { if (!wp_next_scheduled('pv_sa_sync')) wp_schedule_event(time() + HOUR_IN_SECONDS, 'daily', 'pv_sa_sync'); }); add_action('pv_sa_sync', 'pv_sync_south_africa'); add_action('admin_menu', function () { add_management_page('Government feeds', 'Government feeds', 'manage_options', 'panveriq-government-feeds', function () { $s = get_option('pv_sa_status', []); echo '

Government tender feeds

South Africa: National Treasury OCDS releases. This source covers data submitted to the Treasury by public entities; it is not every government tender in South Africa.

'; echo '

Last run: '.esc_html($s['at'] ?? 'Never').' · Releases examined: '.esc_html($s['examined'] ?? 0).' · Open notices saved or updated: '.esc_html($s['saved'] ?? 0).' · Page: '.esc_html($s['page'] ?? 0).'

'; if (!empty($s['sample'])) echo '

Sample record: '.esc_html(wp_json_encode($s['sample'])).'

'; if (!empty($s['error'])) echo '

'.esc_html($s['error']).'

'; if (!empty($s['more'])) echo '

More pages are available. Run another page to continue the backfill.

'; echo '
'; wp_nonce_field('pv_run_sa'); submit_button('Import next South Africa page'); echo '
'; echo '

Source: National Treasury publication policy. Open data licence: PDDL 1.0. The original official notice or document is linked on every result.

'; }); }); add_action('admin_post_pv_run_sa', function () { if (!current_user_can('manage_options')) wp_die('Forbidden','',['response'=>403]); check_admin_referer('pv_run_sa'); pv_sync_south_africa(); wp_safe_redirect(admin_url('tools.php?page=panveriq-government-feeds')); exit; }); function pv_sync_south_africa() { if (get_transient('pv_sa_lock')) return; set_transient('pv_sa_lock', 1, 3 * MINUTE_IN_SECONDS); $cursor = get_option('pv_sa_cursor', []); if (!is_array($cursor) || empty($cursor['from']) || empty($cursor['to']) || empty($cursor['page'])) { $cursor = ['from'=>gmdate('Y-m-d', time() - 30 * DAY_IN_SECONDS), 'to'=>gmdate('Y-m-d'), 'page'=>1]; } $page = max(1, min(10000, absint($cursor['page']))); $url = add_query_arg(['PageNumber'=>$page, 'PageSize'=>100, 'dateFrom'=>$cursor['from'].'T00:00:00Z', 'dateTo'=>$cursor['to'].'T23:59:59Z'], 'https://ocds-api.etenders.gov.za/api/OCDSReleases'); $response = wp_remote_get($url, ['timeout'=>65, 'headers'=>['Accept'=>'application/json']]); $error = ''; $saved = 0; $examined = 0; $more = false; if (is_wp_error($response)) $error = $response->get_error_message(); elseif (wp_remote_retrieve_response_code($response) !== 200) $error = 'National Treasury API HTTP '.wp_remote_retrieve_response_code($response); else { $data = json_decode(wp_remote_retrieve_body($response), true); if (!is_array($data) || !isset($data['releases']) || !is_array($data['releases'])) $error = 'Invalid OCDS response'; else { foreach ($data['releases'] as $release) { $examined++; $tender = $release['tender'] ?? []; if (!is_array($tender) || strtolower((string)($tender['status'] ?? '')) !== 'active') continue; $ocid = sanitize_text_field($release['ocid'] ?? ''); $end = (string)($tender['tenderPeriod']['endDate'] ?? ''); $deadline_time = $end ? strtotime($end) : false; $deadline = $deadline_time ? gmdate('Y-m-d', $deadline_time) : ''; if (!$ocid || !$deadline || $deadline < gmdate('Y-m-d')) continue; $description = sanitize_text_field($tender['description'] ?? ''); $title = $description ?: sanitize_text_field($tender['title'] ?? 'Government tender'); $source_url = ''; foreach (($tender['documents'] ?? []) as $document) { $candidate = esc_url_raw($document['url'] ?? ''); if ($candidate && wp_http_validate_url($candidate)) { $source_url = $candidate; break; } } if (!$source_url) continue; $source_id = 'za:'.$ocid; $existing = get_posts(['post_type'=>'pv_opportunity', 'post_status'=>'any', 'meta_key'=>'pv_source_id', 'meta_value'=>$source_id, 'fields'=>'ids', 'posts_per_page'=>1]); $post = ['post_type'=>'pv_opportunity', 'post_status'=>'publish', 'post_title'=>mb_substr($title,0,240), 'post_content'=>sanitize_textarea_field($description), 'post_author'=>1]; if ($existing) $post['ID'] = $existing[0]; $post_id = wp_insert_post($post, true); if (is_wp_error($post_id)) { $error = $post_id->get_error_message(); continue; } update_post_meta($post_id, 'pv_source_id', $source_id); if (!$existing) update_post_meta($post_id, 'pv_first_seen', gmdate('Y-m-d')); update_post_meta($post_id, 'pv_country', 'South Africa'); update_post_meta($post_id, 'pv_deadline', $deadline); update_post_meta($post_id, 'pv_notice_type', sanitize_text_field($tender['procurementMethodDetails'] ?? 'Government tender')); update_post_meta($post_id, 'pv_project', sanitize_text_field($tender['procuringEntity']['name'] ?? $release['buyer']['name'] ?? 'National Treasury')); update_post_meta($post_id, 'pv_notice_date', sanitize_text_field($release['date'] ?? '')); update_post_meta($post_id, 'pv_checked_at', gmdate('c')); update_post_meta($post_id, 'pv_source_name', 'South Africa National Treasury'); update_post_meta($post_id, 'pv_source_url', $source_url); $saved++; } $more = !empty($data['links']['next']); if ($more && $page < 10000) update_option('pv_sa_cursor', ['from'=>$cursor['from'], 'to'=>$cursor['to'], 'page'=>$page+1], false); else update_option('pv_sa_cursor', [], false); } } update_option('pv_sa_status', ['at'=>gmdate('c'), 'page'=>$page, 'examined'=>$examined, 'saved'=>$saved, 'more'=>$more, 'error'=>$error], false); delete_transient('pv_sa_lock'); } // Government feed expansion: publish notice metadata, never account or bidder data. add_action('init', function () { foreach (['pv_ke_sync','pv_tz_sync','pv_tz_recent_sync'] as $hook) { if (!wp_next_scheduled($hook)) wp_schedule_event(time() + 120, 'hourly', $hook); } }); add_action('pv_ke_sync','pv_sync_kenya'); add_action('pv_ke_continue','pv_sync_kenya'); add_action('pv_tz_sync','pv_sync_tanzania'); add_action('pv_tz_continue','pv_sync_tanzania'); add_action('init',function () { if (!get_option('pv_tz_midnight_v1')) { delete_option('pv_tz_recent_next'); update_option('pv_tz_midnight_v1',1,false); } }); function pv_sync_tanzania_recent() { pv_sync_tanzania(true); } add_action('pv_tz_recent_sync','pv_sync_tanzania_recent'); add_action('pv_tz_recent_continue','pv_sync_tanzania_recent'); register_deactivation_hook(__FILE__, function () { foreach (['pv_ke_sync','pv_ke_continue','pv_tz_sync','pv_tz_continue','pv_tz_recent_sync','pv_tz_recent_continue','pv_sa_sync'] as $hook) wp_clear_scheduled_hook($hook); }); function pv_government_json($url) { $r = wp_remote_get($url, ['timeout'=>35,'limit_response_size'=>12*1024*1024,'headers'=>['Accept'=>'application/json']]); if (is_wp_error($r)) return $r; if (wp_remote_retrieve_response_code($r)!==200) return new WP_Error('source_http','Source HTTP '.wp_remote_retrieve_response_code($r)); $d=json_decode(wp_remote_retrieve_body($r),true); return is_array($d) ? $d : new WP_Error('source_json','Invalid source JSON'); } function pv_store_government_notice($n) { $id=sanitize_text_field($n['id'] ?? ''); if (!$id) return false; $existing=get_posts(['post_type'=>'pv_opportunity','post_status'=>'any','meta_key'=>'pv_source_id','meta_value'=>$id,'fields'=>'ids','posts_per_page'=>1]); // An older backfill release must not overwrite a newer notice update. if ($existing) { $stored_date=strtotime(get_post_meta($existing[0],'pv_notice_date',true)); $incoming_date=strtotime($n['published'] ?? ''); if ($stored_date && $incoming_date && $stored_date>$incoming_date) return false; } $deadline_time=strtotime($n['end'] ?? ''); if (empty($n['active']) || !$deadline_time || $deadline_time <= time()) { if ($existing) {wp_update_post(['ID'=>$existing[0],'post_status'=>'draft']);if (!empty($n['published'])) update_post_meta($existing[0],'pv_notice_date',sanitize_text_field($n['published']));} return false; } if (empty($n['title']) || empty($n['url'])) return false; $post=['post_type'=>'pv_opportunity','post_status'=>'publish','post_title'=>sanitize_text_field($n['title']),'post_content'=>'','post_author'=>1]; if ($existing) $post['ID']=$existing[0]; $post_id=wp_insert_post($post,true); if (is_wp_error($post_id)) return $post_id; $meta=['pv_source_id'=>$id,'pv_country'=>$n['country'],'pv_deadline'=>gmdate('Y-m-d',$deadline_time),'pv_deadline_at'=>gmdate('c',$deadline_time),'pv_notice_type'=>$n['method'],'pv_project'=>$n['buyer'],'pv_notice_date'=>$n['published'],'pv_checked_at'=>gmdate('c'),'pv_source_name'=>$n['source'],'pv_source_url'=>$n['url'],'pv_reference'=>$n['reference'] ?? '', 'pv_source_license'=>$n['license'] ?? '']; foreach ($meta as $key=>$value) update_post_meta($post_id,$key,sanitize_text_field($value)); if (!$existing) update_post_meta($post_id,'pv_first_seen',gmdate('Y-m-d')); return $post_id; } function pv_sync_kenya() { if (get_transient('pv_ke_lock')) return; set_transient('pv_ke_lock',1,10*MINUTE_IN_SECONDS); $page=max(1,(int)get_option('pv_ke_page',1));$seen=0;$saved=0;$error='';$more=false; $cycle=get_option('pv_ke_cycle',''); if ($page===1 || !$cycle) {$cycle=wp_generate_uuid4();update_option('pv_ke_cycle',$cycle,false);} for ($batch=0;$batch<10;$batch++) { $url=add_query_arg(['search'=>'','perpage'=>100,'order'=>'asc','page'=>$page],'https://tenders.go.ke/api/active-tenders'); $d=pv_government_json($url); if (is_wp_error($d)) {$error=$d->get_error_message();break;} if (!isset($d['data']) || !is_array($d['data'])) {$error='Invalid Kenya feed';break;} foreach ($d['data'] as $t) { $seen++; $end=isset($t['close_at']) ? strtotime($t['close_at'].' +0300') : false; $id=absint($t['id'] ?? 0); if (!$id || !$end) continue; $result=pv_store_government_notice(['id'=>'ke:'.$id,'title'=>$t['title'] ?? '', 'end'=>gmdate('c',$end),'active'=>!empty($t['published']) && empty($t['terminated']),'country'=>'Kenya','method'=>$t['procurement_method']['title'] ?? 'Government tender','buyer'=>$t['pe']['name'] ?? '', 'published'=>$t['published_at'] ?? '', 'source'=>'Kenya Public Procurement Regulatory Authority (PPIP)','url'=>'https://tenders.go.ke/tenders/'.$id,'reference'=>$t['tender_ref'] ?? '']); if (is_wp_error($result)) {$error=$result->get_error_message();break;} if ($result) {$saved++;update_post_meta($result,'pv_ke_cycle',$cycle);} } if ($error) break; $more=!empty($d['next_page_url']); if (!$more) {$page=1;break;} $page++; } update_option('pv_ke_page',$page,false); if ($more && !$error && !wp_next_scheduled('pv_ke_continue')) wp_schedule_single_event(time()+5*MINUTE_IN_SECONDS,'pv_ke_continue'); if (!$more && !$error) { wp_clear_scheduled_hook('pv_ke_continue'); // The active-only source omits terminated notices; hide them after a complete scan. if ($seen>0 && isset($d['total']) && $seen >= (int)$d['total']) { $old=get_posts(['post_type'=>'pv_opportunity','post_status'=>'publish','posts_per_page'=>-1,'fields'=>'ids','meta_query'=>[['key'=>'pv_source_name','value'=>'Kenya Public Procurement Regulatory Authority (PPIP)'],['key'=>'pv_ke_cycle','value'=>$cycle,'compare'=>'!=']]]); foreach ($old as $post_id) wp_update_post(['ID'=>$post_id,'post_status'=>'draft']); } } update_option('pv_ke_status',['at'=>gmdate('c'),'examined'=>$seen,'saved'=>$saved,'more'=>$more,'error'=>$error,'next_page'=>$page],false); delete_transient('pv_ke_lock'); } function pv_sync_tanzania($recent=false) { $cursor_option=$recent ? "pv_tz_recent_next" : "pv_tz_next"; $continue_hook=$recent ? "pv_tz_recent_continue" : "pv_tz_continue"; $status_option=$recent ? "pv_tzrecent_status" : "pv_tz_status"; if (get_transient('pv_tz_lock')) return; set_transient('pv_tz_lock',1,10*MINUTE_IN_SECONDS); $base='https://nest.go.tz/gateway/nest-data-portal-api/api/releases'; $url=get_option($cursor_option,''); if (!$url) $url=add_query_arg('since',gmdate('Y-m-d\T00:00:00\Z',time()-($recent ? 2 : 30)*DAY_IN_SECONDS),$base); $seen=0;$saved=0;$error='';$more=false;$sample=[]; for ($batch=0;$batch<10;$batch++) { // Follow only this documented source's pagination links. if (strpos($url,$base.'?')!==0) {$error='Invalid Tanzania pagination URL';break;} $d=pv_government_json($url); if (is_wp_error($d)) {$error=$d->get_error_message();break;} if (!isset($d['releases']) || !is_array($d['releases'])) {$error='Invalid Tanzania feed';break;} foreach ($d['releases'] as $r) { $seen++;$t=$r['tender'] ?? [];$ocid=$r['ocid'] ?? ''; if (!$sample) $sample=['release_date'=>$r['date'] ?? '', 'deadline'=>$t['tenderPeriod']['endDate'] ?? '', 'status'=>$t['status'] ?? '', 'has_title'=>!empty($t['title']) || !empty($t['description'])]; if (!$ocid || !is_array($t) || empty($t['status'])) continue; $result=pv_store_government_notice(['id'=>'tz:'.$ocid,'title'=>$t['title'] ?? $t['description'] ?? '', 'end'=>$t['tenderPeriod']['endDate'] ?? '', 'active'=>strtolower($t['status'])==='active','country'=>'Tanzania','method'=>$t['procurementMethodDetails'] ?? 'Government tender','buyer'=>$r['buyer']['name'] ?? $t['procuringEntity']['name'] ?? '', 'published'=>$r['date'] ?? '', 'source'=>'Tanzania PPRA NeST (OCDS)','url'=>$url,'reference'=>$t['id'] ?? $ocid,'license'=>'https://data.nest.go.tz/license']); if (is_wp_error($result)) {$error=$result->get_error_message();break;} if ($result) $saved++; } if ($error) break; $next=$d['links']['next'] ?? '';$more=(bool)$next; if (!$more) break; $url=$next; } if (!$error && !$more) {delete_option($cursor_option);wp_clear_scheduled_hook($continue_hook);} else update_option($cursor_option,$url,false); if (!$error && $more && !wp_next_scheduled($continue_hook)) wp_schedule_single_event(time()+5*MINUTE_IN_SECONDS,$continue_hook); update_option($status_option,['at'=>gmdate('c'),'examined'=>$seen,'saved'=>$saved,'more'=>$more,'error'=>$error,'sample'=>$sample],false); delete_transient('pv_tz_lock'); } add_action('admin_menu',function () { add_management_page('Africa government feeds','Africa government feeds','manage_options','pv-africa-feeds',function () { echo '

Africa government tender feeds

Kenya, Tanzania and Zimbabwe: hourly automatic imports while WP-Cron runs. Large feeds continue in batches. Only currently open notice metadata is published; original sources and references are retained.

'; foreach (['Kenya Public Procurement Regulatory Authority (PPIP)','Tanzania PPRA NeST (OCDS)','Zimbabwe PRAZ eGP'] as $source_name) { $published=get_posts(['post_type'=>'pv_opportunity','post_status'=>'publish','posts_per_page'=>-1,'fields'=>'ids','meta_key'=>'pv_source_name','meta_value'=>$source_name]); echo '

'.esc_html($source_name).' · Published notices: '.count($published).'

'; } foreach (['ke'=>'Kenya PPRA / PPIP','tz'=>'Tanzania PPRA / NeST','tzrecent'=>'Tanzania recent notices','zw'=>'Zimbabwe PRAZ eGP'] as $key=>$name) { $s=get_option('pv_'.$key.'_status',[]); echo '

'.esc_html($name).'

Last run: '.esc_html($s['at'] ?? 'Never').' · Examined: '.esc_html($s['examined'] ?? 0).' · Saved or updated: '.esc_html($s['saved'] ?? 0).'

'; if (!empty($s['sample'])) echo '

Sample record: '.esc_html(wp_json_encode($s['sample'])).'

'; if (!empty($s['error'])) echo '

Source error: '.esc_html($s['error']).'

'; echo '

'.(empty($s['at'])?'Not yet run.':(!empty($s['error'])?'Import incomplete; automatic retry scheduled.':(!empty($s['more'])?'Backfill continuing automatically.':'Pagination completed.'))).'

'; echo '
'; wp_nonce_field('pv_run_africa');submit_button('Sync '.$name);echo '
'; } echo '

Sources still requiring work

'; }); }); add_action('admin_post_pv_run_africa',function () { if (!current_user_can('manage_options')) wp_die('Forbidden','',['response'=>403]); check_admin_referer('pv_run_africa'); $source=sanitize_key(wp_unslash($_POST['source'] ?? '')); if ($source==='ke') pv_sync_kenya();elseif ($source==='tz') pv_sync_tanzania();elseif ($source==='tzrecent') pv_sync_tanzania_recent();elseif ($source==='zw') pv_sync_zimbabwe(); wp_safe_redirect(admin_url('tools.php?page=pv-africa-feeds'));exit; }); add_action('init',function () { if (!wp_next_scheduled('pv_zw_sync')) wp_schedule_event(time()+120,'hourly','pv_zw_sync'); }); add_action('pv_zw_sync','pv_sync_zimbabwe'); add_action('pv_zw_continue','pv_sync_zimbabwe'); register_deactivation_hook(__FILE__,function () {wp_clear_scheduled_hook('pv_zw_sync');wp_clear_scheduled_hook('pv_zw_continue');}); function pv_sync_zimbabwe() { if (get_transient('pv_zw_lock')) return; set_transient('pv_zw_lock',1,10*MINUTE_IN_SECONDS); $base='https://egp.praz.org.zw';$url=get_option('pv_zw_next',$base.'/Indexes/index'); $seen=0;$saved=0;$more=false;$error=''; $cycle=get_option('pv_zw_cycle',''); if (!$cycle || $url===$base.'/Indexes/index') {$cycle=wp_generate_uuid4();update_option('pv_zw_cycle',$cycle,false);} for ($batch=0;$batch<3;$batch++) { if (strpos($url,$base.'/')!==0) {$error='Invalid Zimbabwe source URL';break;} $response=wp_remote_get($url,['timeout'=>35,'limit_response_size'=>2*1024*1024]); if (is_wp_error($response)) {$error=$response->get_error_message();break;} if (wp_remote_retrieve_response_code($response)!==200) {$error='Source HTTP '.wp_remote_retrieve_response_code($response);break;} if (!class_exists('DOMDocument')) {$error='HTML parser unavailable';break;} $doc=new DOMDocument();$previous=libxml_use_internal_errors(true);$doc->loadHTML(wp_remote_retrieve_body($response));libxml_clear_errors();libxml_use_internal_errors($previous);$xpath=new DOMXPath($doc); $rows=$xpath->query('//tr[td[@data-label="Tender Id"]]'); if (!$rows || !$rows->length) {$error='No tender rows; source layout needs checking';break;} foreach ($rows as $row) { $cells=$xpath->query('./td',$row);if ($cells->length!==9) {$error='Unexpected Zimbabwe tender columns';break;} $values=[];foreach ($cells as $cell) $values[]=trim(preg_replace('/\s+/u',' ',$cell->textContent)); $link=$xpath->query('.//a[@href]',$cells->item(0))->item(0);$id=absint($values[0]);$source_url=$link ? $link->getAttribute('href') : ''; if (!$id || strpos($source_url,$base.'/Indexes/viewLiveTenderDetails/')!==0) {$error='Invalid Zimbabwe tender link';break;} $close=strtotime($values[8].' +0200');$published=strtotime($values[7].' +0200');$seen++; $result=pv_store_government_notice(['id'=>'zw:'.$id,'title'=>$values[2],'end'=>$close ? gmdate('c',$close) : '', 'active'=>true,'country'=>'Zimbabwe','method'=>'Government tender · '.$values[6],'buyer'=>$values[5],'published'=>$published ? gmdate('c',$published) : '', 'source'=>'Zimbabwe PRAZ eGP','url'=>$source_url,'reference'=>$values[1]]); if (is_wp_error($result)) {$error=$result->get_error_message();break;} if ($result) {$saved++;update_post_meta($result,'pv_zw_cycle',$cycle);} } if ($error) break; $next=$xpath->query('//a[@rel="next"]')->item(0);$more=(bool)$next; if (!$more) break; $href=html_entity_decode($next->getAttribute('href'),ENT_QUOTES,'UTF-8'); $url=strpos($href,'https://')===0 ? $href : $base.'/'.ltrim($href,'/'); } if (!$error && !$more) { delete_option('pv_zw_next');wp_clear_scheduled_hook('pv_zw_continue'); $old=get_posts(['post_type'=>'pv_opportunity','post_status'=>'publish','posts_per_page'=>-1,'fields'=>'ids','meta_query'=>[['key'=>'pv_source_name','value'=>'Zimbabwe PRAZ eGP'],['key'=>'pv_zw_cycle','value'=>$cycle,'compare'=>'!=']]]); foreach ($old as $post_id) wp_update_post(['ID'=>$post_id,'post_status'=>'draft']); } else update_option('pv_zw_next',$url,false); if ($more && !$error && !wp_next_scheduled('pv_zw_continue')) wp_schedule_single_event(time()+5*MINUTE_IN_SECONDS,'pv_zw_continue'); update_option('pv_zw_status',['at'=>gmdate('c'),'examined'=>$seen,'saved'=>$saved,'more'=>$more,'error'=>$error],false);delete_transient('pv_zw_lock'); } // SEO landing pages and membership-interest capture. No payment or entitlement is created. add_action('init',function () {register_post_type('pv_membership_lead',['label'=>'Membership interest','public'=>false,'show_ui'=>true,'show_in_rest'=>false,'supports'=>['title','custom-fields'],'capabilities'=>['create_posts'=>'do_not_allow'],'map_meta_cap'=>true]);}); add_shortcode('panveriq_membership',function () { ob_start(); ?>

PANVERIQ membership

Start free. Build your tender workflow.

Discover source-linked African opportunities and follow the markets that matter to your business.

Available now

Free

$0

Explore and stay informed.

  • Search available African tender notices
  • Official source links and closing dates
  • Up to 20 saved keyword or country searches
  • Daily emails when newly imported notices match
Create your free account

Trial access

Pro

Trial access

For businesses managing a regular tender pipeline.

Pro tools:

  • Up to 50 saved searches
  • Up to 200 shortlisted tenders and CSV exports
  • Optional 72-hour and 24-hour deadline reminders
Register interest in Pro

Open your Pro workspace

Pro tools are ready for controlled trials. Paid checkout is not open. Registration of interest does not create a paid subscription.

Be first to hear about Pro

Tell us your preferred billing cycle and the markets you follow. We will use these details to respond about PANVERIQ membership.

Your interest has been recorded. No payment has been taken.

'; ?>

Before you join

The free plan remains available. Pro tools are available to activated trial members; Pro cannot be purchased yet. Tender discovery is not a bidding service or a guarantee of a contract. Source coverage is partial; always check the official notice, amendments and eligibility rules.

Product sourcing is reviewed separately. Send a sourcing enquiry.

400]); $name=substr(sanitize_text_field(wp_unslash($_POST['name'] ?? '')),0,100);$email=sanitize_email(wp_unslash($_POST['email'] ?? '')); $billing=sanitize_key(wp_unslash($_POST['billing'] ?? 'monthly'));$markets=substr(sanitize_text_field(wp_unslash($_POST['markets'] ?? '')),0,250); if (!$name || !is_email($email) || !in_array($billing,['monthly','annual'],true)) wp_die('Enter a valid name and email.','',['response'=>400]); $rate='pv_membership_rate_'.hash('sha256',strtolower($email));if (get_transient($rate)) wp_die('Your interest has already been recorded. Please try again later.',429); $existing=get_posts(['post_type'=>'pv_membership_lead','post_status'=>'private','fields'=>'ids','posts_per_page'=>1,'meta_key'=>'pv_email','meta_value'=>$email]); $post=['post_type'=>'pv_membership_lead','post_status'=>'private','post_title'=>'Pro interest · '.$name,'post_author'=>0];if ($existing) $post['ID']=$existing[0]; $id=wp_insert_post($post,true);if (is_wp_error($id)) wp_die('We could not record your interest. Please try again.',500); foreach (['pv_name'=>$name,'pv_email'=>$email,'pv_billing'=>$billing,'pv_markets'=>$markets,'pv_interest_at'=>gmdate('c'),'pv_contact_consent'=>'membership enquiry'] as $k=>$v) update_post_meta($id,$k,$v); pv_metric_record('pro_interest');set_transient($rate,1,HOUR_IN_SECONDS);wp_safe_redirect(home_url('/membership-plans/?interest=received#membership-interest'));exit; } add_action('wp_enqueue_scripts',function () { wp_add_inline_style('panveriq-mvp','.pv-growth{max-width:1120px;margin:auto;padding:36px 20px}.pv-plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:32px 0}.pv-plan{background:#f5faf8;border:1px solid #c9dfd8;border-radius:12px;padding:28px}.pv-plan h2{font-size:30px}.pv-price{font-size:34px;font-weight:800;color:#087a70}.pv-interest{display:grid;gap:16px;max-width:650px}.pv-interest label{display:grid;gap:6px}.pv-interest input:not([type=checkbox]),.pv-interest select{padding:12px;border:1px solid #c9dfd8;border-radius:6px;width:100%;box-sizing:border-box}.pv-interest label:has([type=checkbox]){display:block}.pv-interest button{justify-self:start;background:#087a70;color:white;border:0;border-radius:7px;padding:12px 20px;font-weight:750}.pv-growth section{padding:24px 0}.pv-growth h1{font-size:clamp(32px,4vw,46px);line-height:1.15}@media(max-width:650px){.pv-plans{grid-template-columns:1fr}}'); }); add_action('admin_menu',function () { add_management_page('Growth setup','Growth setup','manage_options','pv-growth',function () { echo '

PANVERIQ SEO and subscription setup

Create the membership, tender guide and country landing pages. Existing pages with these exact slugs are left unchanged.

';wp_nonce_field('pv_growth_pages');submit_button('Create growth pages');echo '
'; foreach (['membership-plans','african-tender-guide','zimbabwe-government-tenders','tanzania-government-tenders'] as $slug) {$p=get_page_by_path($slug);echo '

'.esc_html($slug).' · '.($p ? 'View published page' : 'Not created').'

';} echo '

Pro checkout is not enabled. No paid access is sold. Membership enquiries are stored privately.

'; }); }); add_action('admin_post_pv_growth_pages',function () { if (!current_user_can('manage_options')) wp_die('Forbidden','',['response'=>403]);check_admin_referer('pv_growth_pages'); $pages=[ 'membership-plans'=>['Membership plans','[panveriq_membership]'], 'zimbabwe-government-tenders'=>['Zimbabwe government tenders','

Zimbabwe government tenders

Search notices from Zimbabwe’s official PRAZ electronic procurement bulletin board, alongside other available procurement sources. Compare buyer names, requirements and closing dates, then follow the original notice to check documents and amendments.

Use a keyword to focus on your business. Create a free account to save this search and receive daily emails when new matching notices are imported.

PANVERIQ aggregates notice information and is not the issuing authority. Eligibility, registration, submission procedures and tender-specific charges are set by each buyer.

[panveriq_opportunities country="Zimbabwe"]'], 'tanzania-government-tenders'=>['Tanzania government tenders','

Tanzania government tenders

Explore notices from Tanzania PPRA NeST procurement data and other available sources. Find buyers, tender references and closing dates in one searchable view.

The original data links identify the source of each notice. Use the tender reference to locate the corresponding procurement notice in the official NeST system before preparing a bid.

Import backfill is in progress and coverage is partial. Join free for saved searches and daily matching alerts.

[panveriq_opportunities country="Tanzania"]'], 'african-tender-guide'=>['How to find African government tenders','

How to find African government tenders

Use PANVERIQ to discover source-linked procurement notices and build a focused search. The issuing authority’s current notice remains the place to confirm requirements.

1. Start with your country and service

Choose a country and search for a clear product or service keyword, such as construction, laboratory equipment or transport. Try related terms if the first search is too narrow.

Browse Zimbabwe tenders · Browse Tanzania tenders · Search available African notices

2. Check the original source

Open the official notice or source-data link. Match the tender reference, buyer and deadline. Read documents and amendments at the source. Publication in PANVERIQ does not establish eligibility.

3. Review the submission details

Confirm the deadline time and timezone, submission method, registration requirements and any buyer-imposed fees before deciding whether to bid. Contact the issuing authority when details are unclear.

4. Save a relevant search

Create a free account, run your search and choose Save search. PANVERIQ supports up to 20 saved searches and sends a daily email when newly imported notices match. Broad terms can produce less relevant results, so refine them over time.

5. Keep a working shortlist

Record the tender reference, source URL, buyer, deadline and your next action. Recheck the source before submission for amended requirements or dates.

What does PANVERIQ cover?

Sources include World Bank notices in African markets, Zimbabwe PRAZ eGP and Tanzania PPRA NeST. Coverage is partial and source availability can vary.

Does a subscription guarantee a contract?

No. PANVERIQ helps with discovery and alerts. The buyer decides eligibility and awards. See membership plans or enquire about product sourcing.

'] ]; foreach ($pages as $slug=>$data) {if (get_page_by_path($slug)) continue;$id=wp_insert_post(['post_type'=>'page','post_status'=>'publish','post_title'=>$data[0],'post_name'=>$slug,'post_content'=>$data[1],'post_author'=>get_current_user_id()],true);if (is_wp_error($id)) wp_die(esc_html($id->get_error_message()),500);} wp_safe_redirect(admin_url('tools.php?page=pv-growth'));exit; }); // Pro tools: existing free benefits are preserved; checkout remains separate. function pv_is_pro($uid=0) { $uid=$uid ?: get_current_user_id(); return $uid && (user_can($uid,'manage_options') || (int)get_user_meta($uid,'pv_pro_until',true)>time()); } function pv_search_limit($uid=0) {return pv_is_pro($uid) ? 50 : 20;} function pv_shortlist($uid=0) {$v=get_user_meta($uid ?: get_current_user_id(),'pv_shortlist',true);return is_array($v) ? $v : [];} function pv_pro_guard($action) { if (!is_user_logged_in() || !pv_is_pro()) wp_die('An active Pro membership is required.','',['response'=>403]); check_admin_referer($action,'_pv_nonce'); } function pv_shortlist_button($id) { if (!pv_is_pro()) return ''; $saved=isset(pv_shortlist()[$id]); return '
'.wp_nonce_field('pv_shortlist_change','_pv_nonce',true,false).'
'; } add_action('admin_post_pv_shortlist_change',function () { pv_pro_guard('pv_shortlist_change');$id=absint($_POST['notice'] ?? 0);$op=sanitize_key($_POST['operation'] ?? '');$v=pv_shortlist(); if ($op==='remove') unset($v[$id]); elseif ($op==='add') { if (get_post_type($id)!=='pv_opportunity' || get_post_status($id)!=='publish') wp_die('Notice unavailable.','',['response'=>404]); if (!isset($v[$id]) && count($v)>=200) wp_die('Your shortlist holds up to 200 notices.','',['response'=>400]); $v[$id]=gmdate('c');pv_metric_record('shortlist_add'); } else wp_die('Invalid operation.','',['response'=>400]); update_user_meta(get_current_user_id(),'pv_shortlist',$v);wp_safe_redirect(home_url('/pro-workspace/?updated=1'));exit; }); add_shortcode('panveriq_pro_workspace',function () { if (!is_user_logged_in()) return '

Your Pro workspace

Sign in to view your membership tools.

'; if (!pv_is_pro()) return '

Your Pro workspace

These tools require an active Pro membership. Register interest in Pro or manage your free alerts.

'; $v=pv_shortlist();$enabled=(bool)get_user_meta(get_current_user_id(),'pv_deadline_reminders',true); $html='

PANVERIQ PRO

Your tender workspace

Up to 50 saved searches · Up to 200 shortlisted notices · CSV export · Optional deadline reminders

Find tenders · Manage saved searches

'; $html.='

Deadline reminders

Receive an email for shortlisted open notices within 72 hours and again within 24 hours of closing. Times and amendments must be confirmed at the official source. Reminders depend on scheduled tasks and email delivery.

'.wp_nonce_field('pv_reminder_preferences','_pv_nonce',true,false).'

'; $html.='

Your shortlist ('.count($v).')

'; if (!$v) $html.='

Find a tender and select Save to Pro shortlist.

'; else $html.='

Export shortlist CSV

'; foreach ($v as $id=>$added) { if (get_post_type($id)!=='pv_opportunity') continue; $html.='

'.esc_html(get_the_title($id)).'

'.esc_html(get_post_meta($id,'pv_country',true)).' · Closes '.esc_html(get_post_meta($id,'pv_deadline',true)).' · '.(get_post_status($id)==='publish'?'Listed notice':'No longer listed as open').'

Buyer: '.esc_html(get_post_meta($id,'pv_project',true)).'

Reference: '.esc_html(get_post_meta($id,'pv_reference',true) ?: get_post_meta($id,'pv_source_id',true)).'

Open official source'.pv_shortlist_button($id).'
'; } return $html.'
'; }); function pv_csv_cell($v) {$v=wp_strip_all_tags((string)$v);return preg_match('/^[\s]*[=+\-@]/u',$v) ? "'".$v : $v;} add_action('admin_post_pv_export_shortlist',function () { pv_pro_guard('pv_export_shortlist');nocache_headers();header('Content-Type: text/csv; charset=UTF-8');header('Content-Disposition: attachment; filename="panveriq-shortlist.csv"'); $out=fopen('php://output','w');fwrite($out,"\xEF\xBB\xBF");fputcsv($out,['Title','Country','Buyer','Reference','Deadline date','Deadline time (if supplied)','Source','Official URL','Status'],',','"',''); foreach (pv_shortlist() as $id=>$added) {if (get_post_type($id)!=='pv_opportunity') continue;$row=[get_the_title($id),get_post_meta($id,'pv_country',true),get_post_meta($id,'pv_project',true),get_post_meta($id,'pv_reference',true) ?: get_post_meta($id,'pv_source_id',true),get_post_meta($id,'pv_deadline',true),get_post_meta($id,'pv_deadline_at',true),get_post_meta($id,'pv_source_name',true) ?: 'World Bank',get_post_meta($id,'pv_source_url',true),get_post_status($id)];fputcsv($out,array_map('pv_csv_cell',$row),',','"','');} fclose($out);pv_metric_record('csv_export');exit; }); add_action('admin_post_pv_reminder_preferences',function () {pv_pro_guard('pv_reminder_preferences');update_user_meta(get_current_user_id(),'pv_deadline_reminders',!empty($_POST['enabled']) ? 1 : 0);wp_safe_redirect(home_url('/pro-workspace/?preferences=saved'));exit;}); function pv_reminder_candidates($uid,$now=0) { $now=$now ?: time();$sent=get_user_meta($uid,'pv_deadline_reminders_sent',true);if (!is_array($sent)) $sent=[];$rows=[]; foreach (pv_shortlist($uid) as $id=>$added) { if (get_post_status($id)!=='publish') continue; $end=get_post_meta($id,'pv_deadline_at',true);if (!$end) $end=get_post_meta($id,'pv_deadline',true).'T23:59:59Z';$close=strtotime($end);$remaining=$close-$now; if (!$close || $remaining<=0 || $remaining>72*HOUR_IN_SECONDS) continue; $stage=$remaining<=24*HOUR_IN_SECONDS ? 24 : 72;$key=$id.':'.hash('sha256',$end).':'.$stage; if (isset($sent[$key])) continue;$rows[]=['id'=>$id,'end'=>$end,'stage'=>$stage,'key'=>$key]; } return array_slice($rows,0,30); } add_action('init',function () {if (!wp_next_scheduled('pv_pro_reminders')) wp_schedule_event(time()+HOUR_IN_SECONDS,'hourly','pv_pro_reminders');}); register_deactivation_hook(__FILE__,function () {wp_clear_scheduled_hook('pv_pro_reminders');}); add_action('pv_pro_reminders',function () { if (get_transient('pv_pro_reminders_lock')) return;set_transient('pv_pro_reminders_lock',1,10*MINUTE_IN_SECONDS);$accepted=0;$failed=0;$checked=0; foreach (get_users(['fields'=>['ID','user_email'],'meta_key'=>'pv_deadline_reminders','meta_value'=>1]) as $u) { if (!pv_is_pro($u->ID)) continue;$checked++;$rows=pv_reminder_candidates($u->ID);if (!$rows) continue;$lines=[]; foreach ($rows as $r) $lines[]=get_the_title($r['id']).' | Closing within '.$r['stage'].' hours | Source deadline: '.$r['end'].' | '.get_post_meta($r['id'],'pv_source_url',true); $message="Deadline reminders for your PANVERIQ shortlist:\n\n".implode("\n\n",$lines)."\n\nAlways confirm the official deadline and amendments. Manage reminders: ".home_url('/pro-workspace/'); if (wp_mail($u->user_email,'PANVERIQ: shortlisted tender deadlines',$message)) {$accepted++;$sent=get_user_meta($u->ID,'pv_deadline_reminders_sent',true);if (!is_array($sent)) $sent=[];foreach ($rows as $r) $sent[$r['key']]=gmdate('c');update_user_meta($u->ID,'pv_deadline_reminders_sent',array_slice($sent,-600,null,true));}else $failed++; } update_option('pv_pro_reminder_status',['at'=>gmdate('c'),'checked'=>$checked,'accepted'=>$accepted,'failed'=>$failed],false);delete_transient('pv_pro_reminders_lock'); }); // Aggregate analytics: no IP, cookie, account ID, email or search phrase stored. add_action('init',function () { if (get_option('pv_metrics_version')==='1') return;global $wpdb;$table=$wpdb->prefix.'pv_metrics';require_once ABSPATH.'wp-admin/includes/upgrade.php'; dbDelta("CREATE TABLE $table (\n day date NOT NULL,\n event varchar(32) NOT NULL,\n source varchar(32) NOT NULL,\n campaign varchar(50) NOT NULL,\n total bigint unsigned NOT NULL DEFAULT 0,\n PRIMARY KEY (day,event,source,campaign)\n) ".$wpdb->get_charset_collate().';'); if ($wpdb->get_var($wpdb->prepare('SHOW TABLES LIKE %s',$table))===$table) update_option('pv_metrics_version','1',false); }); function pv_metric_context() { $source=sanitize_key(wp_unslash($_POST['_pv_source'] ?? $_GET['utm_source'] ?? 'direct'));$campaign=sanitize_key(wp_unslash($_POST['_pv_campaign'] ?? $_GET['utm_campaign'] ?? 'none')); if (!in_array($source,['linkedin','facebook','instagram','email','google','direct','qa'],true)) $source='other'; if (!in_array($campaign,['membership_launch','organic','none','qa'],true)) $campaign='other';return [$source,$campaign]; } function pv_metric_record($event,$qa=false) { if (!in_array($event,['page_view','registration','saved_search','pro_interest','shortlist_add','csv_export'],true) || (! $qa && (current_user_can('manage_options') || ($_SERVER['HTTP_DNT'] ?? '')==='1'))) return; global $wpdb;[$source,$campaign]=pv_metric_context();if ($qa) {$source='qa';$campaign='qa';} $table=$wpdb->prefix.'pv_metrics';$wpdb->query($wpdb->prepare("INSERT INTO $table (day,event,source,campaign,total) VALUES (%s,%s,%s,%s,1) ON DUPLICATE KEY UPDATE total=total+1",gmdate('Y-m-d'),$event,$source,$campaign)); } add_action('template_redirect',function () {if (($_SERVER['REQUEST_METHOD'] ?? '')==='GET' && !is_preview() && !is_404() && !preg_match('/bot|crawler|spider|python|curl/i',$_SERVER['HTTP_USER_AGENT'] ?? '')) pv_metric_record('page_view');}); add_action('user_register',function () {pv_metric_record('registration');}); add_action('register_form',function () {[$source,$campaign]=pv_metric_context();echo '';}); add_action('wp_footer',function () { ?>

PANVERIQ Pro and analytics

Aggregate events over the past 30 days (UTC). These are page views and action counts, not unique visitors. Admin activity, known crawler requests, Do Not Track visits and QA counts are excluded. URL campaign tags carry attribution; there is no cross-device tracking. Pages served entirely from a cache may not be counted.

'; $rows=$wpdb->get_results($wpdb->prepare('SELECT event,source,campaign,SUM(total) AS total FROM '.$wpdb->prefix.'pv_metrics WHERE day >= %s AND source <> %s GROUP BY event,source,campaign ORDER BY event,total DESC',gmdate('Y-m-d',time()-29*DAY_IN_SECONDS),'qa'),ARRAY_A); echo '';foreach ($rows as $r) echo '';if (!$rows) echo '';echo '
EventSourceCampaignCount
'.esc_html($r['event']).''.esc_html($r['source']).''.esc_html($r['campaign']).''.absint($r['total']).'
No visitor events yet. Counts start from deployment.
'; $next=wp_next_scheduled('pv_pro_reminders');echo '

Reminder schedule: '.esc_html($next ? gmdate('c',$next) : 'Missing').' · opt-in only. Mail acceptance does not establish delivery.

Open Pro workspace

'; $qa=get_option('pv_pro_qa',[]);if ($qa) echo '
'.esc_html(wp_json_encode($qa,JSON_PRETTY_PRINT)).'
'; echo '
';wp_nonce_field('pv_pro_setup');submit_button('Create workspace and run checks');echo '
'; echo '

Trial membership access

Grant an existing account Pro access until a date. This does not charge or enrol anyone in recurring billing.

';wp_nonce_field('pv_pro_grant');echo ' ';submit_button('Grant Pro trial');echo '
'; }); }); add_action('admin_post_pv_pro_grant',function () {if (!current_user_can('manage_options')) wp_die('Forbidden','',['response'=>403]);check_admin_referer('pv_pro_grant');$u=get_user_by('email',sanitize_email(wp_unslash($_POST['email'] ?? '')));$date=sanitize_text_field($_POST['until'] ?? '');$end=preg_match('/^\d{4}-\d{2}-\d{2}$/',$date) ? strtotime($date.'T23:59:59Z') : false;if (!$u || !$end || $end<=time() || $end>time()+366*DAY_IN_SECONDS) wp_die('Select an existing account and a future date within one year.','',['response'=>400]);update_user_meta($u->ID,'pv_pro_until',$end);wp_safe_redirect(admin_url('tools.php?page=pv-pro-analytics'));exit;}); add_action('admin_post_pv_pro_setup',function () { if (!current_user_can('manage_options')) wp_die('Forbidden','',['response'=>403]);check_admin_referer('pv_pro_setup');$p=get_page_by_path('pro-workspace');if (!$p) wp_insert_post(['post_type'=>'page','post_status'=>'publish','post_title'=>'Pro workspace','post_name'=>'pro-workspace','post_content'=>'[panveriq_pro_workspace]','post_author'=>get_current_user_id()]); global $wpdb;$before=(int)$wpdb->get_var("SELECT SUM(total) FROM ".$wpdb->prefix."pv_metrics WHERE source='qa' AND event='page_view'");pv_metric_record('page_view',true);$after=(int)$wpdb->get_var("SELECT SUM(total) FROM ".$wpdb->prefix."pv_metrics WHERE source='qa' AND event='page_view'"); $checks=['at'=>gmdate('c'),'admin_pro'=>pv_is_pro(),'pro_limit_50'=>pv_search_limit()===50,'free_limit_20'=>pv_search_limit(999999999)===20,'csv_formula_escaped'=>pv_csv_cell('=SUM(1,2)')==="'=SUM(1,2)",'csv_text_preserved'=>pv_csv_cell('Tender notice')==='Tender notice','analytics_atomic_increment'=>$after===$before+1,'reminder_schedule'=>!!wp_next_scheduled('pv_pro_reminders'),'reminder_preview_count'=>count(pv_reminder_candidates(get_current_user_id())),'emails_sent_by_checks'=>0];update_option('pv_pro_qa',$checks,false);wp_safe_redirect(admin_url('tools.php?page=pv-pro-analytics'));exit; }); // Source-linked intelligence hub: existing recorded notices, no invented forecasts. add_shortcode('panveriq_intelligence', function () { $view=sanitize_key(wp_unslash($_GET['pv_view'] ?? 'current')); if (!in_array($view,['current','past','future'],true)) $view='current'; $keyword=substr(sanitize_text_field(wp_unslash($_GET['pv_q'] ?? '')),0,120); $page=max(1,min(10000,absint($_GET['pv_page'] ?? 1))); $html='

African tender intelligence

Explore current opportunities, recorded past notices and announced procurement plans. Each record links back to its source.

Current tenders · Past notices · Future procurement · Post a tender

'; if ($view==='future') return $html.'

Future procurement

No procurement plans have been verified for this section yet. Planned activity will be listed only when a buyer publishes an identifiable plan or advance notice. Plans may change and are not open invitations to bid.

Suggest an official procurement plan

'; $past=$view==='past'; $html.='

'.($past?'Recorded past notices':'Current tender notices').'

'.($past?'These notices have a recorded closing date before today. They are retained for research; a passed deadline does not establish an award, cancellation or contract outcome. This archive contains records previously imported by PANVERIQ, not a complete historical database.':'Check the issuing authority for the current status, deadline time and amendments before acting.').'

'; $html.='
'; $q=new WP_Query(['post_type'=>'pv_opportunity','post_status'=>$past?['publish','draft']:['publish'],'s'=>$keyword,'posts_per_page'=>20,'paged'=>$page,'meta_key'=>'pv_deadline','orderby'=>'meta_value','order'=>$past?'DESC':'ASC','meta_query'=>[['key'=>'pv_deadline','value'=>gmdate('Y-m-d'),'compare'=>$past?'<':'>=']]]); $html.='

'.absint($q->found_posts).' matching records · Coverage is partial.

'; foreach ($q->posts as $p) { $id=$p->ID;$url=get_post_meta($id,'pv_source_url',true); if (!$url) continue; $html.='

'.esc_html($p->post_title).'

'.esc_html(get_post_meta($id,'pv_country',true)).' · Recorded deadline: '.esc_html(get_post_meta($id,'pv_deadline',true)).'

Buyer: '.esc_html(get_post_meta($id,'pv_project',true)).'

Source: '.esc_html(get_post_meta($id,'pv_source_name',true) ?: 'World Bank procurement notices').' · Reference: '.esc_html(get_post_meta($id,'pv_reference',true) ?: get_post_meta($id,'pv_source_id',true)).'

Last import check: '.esc_html(get_post_meta($id,'pv_checked_at',true)).'

Check original source
'; } if (!$q->found_posts) $html.='

No matching recorded notices yet. Try another keyword.

'; if ($page>1) $html.='Previous '; if ($page<$q->max_num_pages) $html.='Next'; return $html.'

How we check intelligence

We retain source links, references, recorded deadlines and import timestamps. Import checks show when data was retrieved; they do not mean the buyer or every document has been independently verified. Check amendments and outcomes directly with the publisher. Report a correction.

Publicly accessible data is not automatically licensed for unrestricted reuse. PANVERIQ links to publishers and follows source-specific reuse terms. The core plugin is available under the MIT licence: download the source.

'; }); add_shortcode('panveriq_post_tender',function () { return '

Post a tender on PANVERIQ

Reach businesses exploring African procurement opportunities.

Proposed launch price: US$25 per tender

A standard listing would run for up to 30 days or until the tender closing deadline, whichever comes first. Publication starts after review and payment confirmation. Closed notices would be clearly marked in the research archive.

Paid publisher listings will be labelled separately from imported official notices. Payment will not change organic tender rankings or imply buyer endorsement.

Request a listing

Send your organisation name, tender title, reference, country, deadline with timezone, official notice link and a contact authorised by the buyer. We will check the submission before quoting and arranging publication.

Request a tender listing

Listing enquiries are open. Online payment and self-service publication are not yet available; this page takes no payment.

'; }); add_action('admin_menu',function () { add_management_page('Tender intelligence setup','Tender intelligence setup','manage_options','pv-intelligence',function () { echo '

Tender intelligence setup

Create the source-linked current/past/future hub and tender-listing enquiry page. Existing pages are preserved.

';wp_nonce_field('pv_intelligence_setup');submit_button('Create intelligence pages');echo '
'; foreach (['african-tender-intelligence','post-a-tender'] as $slug) {$p=get_page_by_path($slug);if ($p) echo '

'.esc_html($p->post_title).'

';} echo '
'; }); }); add_action('admin_post_pv_intelligence_setup',function () { if (!current_user_can('manage_options')) wp_die('Forbidden','',['response'=>403]);check_admin_referer('pv_intelligence_setup'); foreach (['african-tender-intelligence'=>['African tender intelligence','[panveriq_intelligence]'],'post-a-tender'=>['Post a tender','[panveriq_post_tender]']] as $slug=>$data) { if (get_page_by_path($slug)) continue; $id=wp_insert_post(['post_type'=>'page','post_status'=>'publish','post_title'=>$data[0],'post_name'=>$slug,'post_content'=>$data[1],'post_author'=>get_current_user_id()],true); if (is_wp_error($id)) wp_die(esc_html($id->get_error_message()),500); } wp_safe_redirect(admin_url('tools.php?page=pv-intelligence'));exit; }); add_filter('the_content',function ($content) { if (!is_admin() && is_main_query() && in_the_loop() && is_page('african-tender-opportunities')) $content='

Explore current and past tender intelligence · Post a tender

'.$content; return $content; },9); // Public release serves an approved snapshot, never configuration or database files. function pv_open_license() { return "MIT License Copyright (c) 2026 PANVERIQ contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. "; } add_shortcode('panveriq_open_source',function () { $release=get_option('pv_public_release',[]); $html='

OPEN SOURCE · OPEN INTELLIGENCE

Build African opportunity together.

PANVERIQ combines free tender discovery with open-source software. Developers can inspect, reuse and improve the released core plugin under the MIT licence.

Download the core

'; if (!empty($release['code'])) $html.='

Download plugin source v0.10.0 · MIT licence · Installation and contribution guide

Release date: '.esc_html($release['at']).'
Source SHA-256: '.esc_html($release['sha256']).'

'; else $html.='

The release is being prepared.

'; $html.='

What is open?

How PANVERIQ earns revenue

Discovery remains free. Our commercial model is managed hosting, workflow services, reviewed tender listings and clearly labelled sponsorship. Paid listing enquiries are open; online checkout is still being prepared. Pro is currently offered through controlled trials.

Explore tender intelligence · Request a tender listing · Explore workflow tools

Contribute

Download and review the source. Send a bug report, proposed patch or official source suggestion through our contact form, including the release version and steps to reproduce. Contributions are reviewed before deployment. Do not include passwords, API keys or personal bidder data. A public Git repository is not yet connected.

Suggest a source or correction

Software and data have different licences

The MIT licence applies to the released PANVERIQ plugin code. Procurement notices remain subject to their original publishers’ rights and source-specific licences. It does not grant unrestricted rights to third-party notices, buyer documents, PANVERIQ branding or other plugins.

Private by design

Account details, private enquiries, payment information, server configuration and credentials are excluded from the release.

'; return $html; }); add_action('template_redirect',function () { $kind=sanitize_key(wp_unslash($_GET['pv_open_download'] ?? '')); if (!in_array($kind,['source','license','readme'],true)) return; $r=get_option('pv_public_release',[]);if (empty($r['code'])) wp_die('Release unavailable.','',['response'=>404]); $files=['source'=>['panveriq.php',$r['code']],'license'=>['LICENSE.txt',pv_open_license()],'readme'=>['README.txt',$r['readme']]]; nocache_headers();header('Content-Type: text/plain; charset=UTF-8');header('X-Content-Type-Options: nosniff');header('Content-Disposition: attachment; filename="'.$files[$kind][0].'"');echo $files[$kind][1];exit; },1); add_action('admin_menu',function () { add_management_page('Open source release','Open source release','manage_options','pv-open-source',function () { $r=get_option('pv_public_release',[]);echo '

PANVERIQ open-source release

Publish only the reviewed core plugin source snapshot, MIT licence and installation instructions. No configuration or database records are included.

Release: '.esc_html($r['at'] ?? 'Not published').' · SHA-256: '.esc_html($r['sha256'] ?? '').'

';wp_nonce_field('pv_publish_open_source');submit_button('Publish reviewed source release');echo '

View open-source page

'; }); }); add_action('admin_post_pv_publish_open_source',function () { if (!current_user_can('manage_options')) wp_die('Forbidden','',['response'=>403]);check_admin_referer('pv_publish_open_source'); $code=file_get_contents(__FILE__);if (!$code || strpos($code,'License: MIT')===false) wp_die('Release validation failed.'); $readme="PANVERIQ Core 0.10.0 MIT licence. See LICENSE.txt. INSTALLATION Use a separate WordPress site with PHP 8.3, DOM and mbstring extensions. Create wp-content/plugins/panveriq-core/panveriq.php with the downloaded source. Place LICENSE.txt and README.txt alongside it. Activate PANVERIQ MVP. Do not activate a second copy alongside the existing plugin. Configure WordPress mail delivery and an actual scheduled cron task before relying on alerts. If desired, define PANVERIQ_CONTACT_EMAIL privately in wp-config.php. Enable registration with the subscriber default role. PAGES Use the setup tools for growth pages, Pro workspace and tender intelligence. Other shortcodes: panveriq_opportunities, panveriq_join, panveriq_saved_searches, panveriq_contact, panveriq_sourcing, panveriq_about, panveriq_advertise. Place them on pages. No theme, menus, assets, credentials or database records are included. LIMITATIONS This is an early MVP, not a fully audited production framework. Source availability and layout can change. Kenya is rate-limited; South Africa integration needs repair. Scheduled tasks depend on cron and mail acceptance is not delivery proof. Future procurement currently has no verified plans. Paid checkout is not implemented. Data rights are separate from the software licence. Do not treat historic deadlines as award outcomes. CONTRIBUTIONS Send version, reproduction steps, proposed patch or official source suggestion through https://panveriq.com/contact-panveriq/?topic=source . Never include credentials or personal bidder data. Contributions must be yours to license under MIT. No public Git repository is connected yet. BUSINESS MODEL Free discovery and open-source code; revenue from managed services, optional workflow services, reviewed listings and labelled sponsorship. Core self-hosting is allowed under MIT. "; update_option('pv_public_release',['code'=>$code,'readme'=>$readme,'at'=>gmdate('c'),'sha256'=>hash('sha256',$code)],false); if (!get_page_by_path('open-source')) wp_insert_post(['post_type'=>'page','post_status'=>'publish','post_title'=>'Open source','post_name'=>'open-source','post_content'=>'[panveriq_open_source]','post_author'=>get_current_user_id()]); wp_safe_redirect(admin_url('tools.php?page=pv-open-source'));exit; }); add_action('wp_footer',function () {echo '
Open source · Tender intelligence · Post a tender
';},40);