// TEMP: Replace existing related links
add_action('rest_api_init', function() {
register_rest_route('custom/v1', '/replace-related-links', array(
'methods'=>'POST','callback'=>'custom_replace_rel_links',
'permission_callback'=>function(){return current_user_can('edit_posts');}
));
});
function custom_replace_rel_links($request) {
$items = $request->get_param('items') ?: array();
$res = array('success'=>0,'failed'=>0,'errors'=>array());
foreach ($items as $item) {
$pid = intval($item['post_id'] ?? 0);
$html = wp_kses_post($item['html'] ?? '');
if (!$pid || !$html) { $res['failed']++; continue; }
$post = get_post($pid);
if (!$post) { $res['failed']++; continue; }
// Remove old related-products-links block and add new one
$content = $post->post_content;
// Remove any existing related-products-links paragraph
$content = preg_replace('/
]*class="related-products-links"[^>]*>.*?<\/p>/s', '', $content);
$content = rtrim($content) . $html;
$r = wp_update_post(array('ID'=>$pid,'post_content'=>$content), true);
if (is_wp_error($r)) { $res['failed']++; $res['errors'][] = $pid; } else { $res['success']++; }
}
return $res;
}
Commercial Fire Alarms, Smoke Sensors & Bases | Life Safety Consultants
-

Mircom (TX3-P300-HA) Mini mullion mount reader, 3.2″ x 1.7″ x 0.7″.
$160.65
Add to cart
-

Mircom (TX3-IP-NP-256) Tx3 ip gateway (ip to rs485 bridge) , internally mounted (looks like the former tx3-cx-1np)
$617.46
Add to cart
-

Mircom (TX3-IP-256) Tx3 ip gateway (ip to rs485 bridge) , externally mounted
$719.54
Add to cart
-

Mircom (TX3-ER-8-B-256) Native ip capability is not included on all -256 models.
$953.81
Add to cart
-

Mircom (TX3-CX-4K-A) Four door controller kit with ip module, four proximity readers (tx3-p300-ha) , four proximity graphic card, two transformers, configurator software and a usb cable. provision to add two additional 2 door controller boards.
$1,873.68
Add to cart
-

Mircom (TX3-CX-2K-A-256) Native ip capability is not included on all -256 models.
$941.26
Add to cart
-

Mircom (TX3-CX-2-A) Tx3-cx-2-a two door controller
$773.46
Add to cart
-

Mircom (TX3-CX-1NP-256) Single door control module, native ip capability is not included
$928.70
Add to cart
-

Mircom (TX3-CX-1NP) Single door control module – please refer to the installattion
$803.19
Add to cart
-

Mircom (TX3-ATA) Ata adapter for tx3 voice entry systems, 1 fxs port
$110.45
Add to cart
-

Mircom (TX3-2000-8U-C) 2000 name surface mount tele access w/card reader option. includes: surface mount universal enclosure, grey; 2000 name controller; 8×20 lcd display; hands free operation; rain hood; stainless steel front panel; one ps-4p transformer; tx3 configuration software; for semi-flush mounting add tx3-uft.
$1,687.28
Add to cart
-

Mircom (TX3-120C-C) 120 name paper directory flush mount telephone access kit
$1,494.85
Add to cart