// TEMP: Keyphrase bulk importer via REST
add_action('rest_api_init', function() {
register_rest_route('lsc/v1', '/bulk-kw', array(
'methods' => 'POST',
'callback' => 'lsc_process_kw_csv',
'permission_callback' => function() { return current_user_can('manage_options'); }
));
});
function lsc_process_kw_csv($request) {
$csv = $request->get_param('csv');
$rows = explode("\n", $csv);
$updated = 0; $errors = array();
foreach ($rows as $i => $row) {
if ($i === 0 || empty(trim($row))) continue;
$cols = str_getcsv($row);
$post_id = intval($cols[0] ?? 0);
$kw = sanitize_text_field($cols[1] ?? '');
if ($post_id > 0 && !empty($kw)) {
update_post_meta($post_id, '_yoast_wpseo_focuskw', $kw);
$updated++;
} else { $errors[] = "row $i: id=$post_id kw=$kw"; }
}
return new WP_REST_Response(array('updated'=>$updated,'errors'=>count($errors),'sample_errors'=>array_slice($errors,0,5)), 200);
}
// END TEMP
Commercial Fire Alarms, Smoke Sensors & Bases | Life Safety Consultants
“Simplex (49SVC-WRFIRE-O) Sv cover, wall,red,fire wp” has been added to your cart.
View cart
-

Eaton|Wheelock (ELSTRC) Eluxa,led str,red,ceiling,24v,15/30/75/110/150/177cd,fire
$55.92
Add to cart
-

Fire-Lite (BG-12LX) Dual-Action Addressable Pull Station
$123.42
Read more
-

Simplex (49VOC-CRF) Vo cover, ceiling red fire
$6.69
Add to cart
-

Simplex (49VO-APPLC) Vo appliance only ceiling
$98.88
Add to cart
-

Simplex (49SVC-WRFIRE-O) Sv cover, wall,red,fire wp
$15.96
Add to cart
-

Simplex (49SV-APPLC) Spkr/vis applianc only ceiling
$201.17
Read more
-

Simplex (4098-9852) 10″ in-duct adapter
$83.73
Add to cart
-

Simplex (4090-9813) 4 11/16″ box adapter plate
$19.15
Add to cart
-

Edwards (3-ZA20B) Zoned amplifier, 20 watt, class b. 20 watt selectable for 25 or 70 vrms class b output. mounts in 1 lrm space. has built in class b..nac rated at 3.5 amps. supports one user interface module.
$849.65
Read more
-

Siemens (DB-11E) Detector Mounting Base, 500-094151E
$5.71
Add to cart
-

Protectowire Single Action Manual Pull Station – Die Cast Metal (SG-42SK2)
$69.00
Add to cart
-

Siemens (CP-2ER) Control Panel Board (580-193485-4)
$949.00
Add to cart