// TEMPORARY: Bulk keyphrase updater endpoint
add_action('rest_api_init', function() {
register_rest_route('lsc/v1', '/update-keyphrases', array(
'methods' => 'POST',
'callback' => 'lsc_bulk_update_keyphrases',
'permission_callback' => function() { return current_user_can('manage_options'); }
));
});
function lsc_bulk_update_keyphrases($request) {
$data = $request->get_json_params();
$items = isset($data['items']) ? $data['items'] : array();
$results = array('updated' => 0, 'errors' => array());
foreach ($items as $item) {
$post_id = intval(isset($item['id']) ? $item['id'] : 0);
$keyphrase = sanitize_text_field(isset($item['keyphrase']) ? $item['keyphrase'] : '');
if ($post_id > 0 && !empty($keyphrase)) {
update_post_meta($post_id, '_yoast_wpseo_focuskw', $keyphrase);
$results['updated']++;
} else {
array_push($results['errors'], 'Invalid: ' . strval($post_id));
}
}
return new WP_REST_Response($results, 200);
}
// END TEMPORARY
Commercial Fire Alarms, Smoke Sensors & Bases | Life Safety Consultants
-

System Sensor (SPCRL-BP10) Speaker only, ceiling, 1/4w – 2w, red – bulk pack of 10 units
$372.60
Add to cart
-

System Sensor (SPCRL) Speaker red ceiling
$40.88
Add to cart
-

System Sensor (SPCR) Ceiling, red, speaker only
$32.35
Add to cart
-

Wheelock (SPBX-160) Safepath spb 160 replacement mother board
$1,372.35
Add to cart
-

System Sensor (SPBBSC) Red ceiling mounted back box skirt
$12.15
Read more
-

Wheelock (SPB-80/4-B) Sp superv audio power booster,80w,4a strb pwr,blk
$2,246.59
Add to cart
-

Wheelock (SPB-80/4) Sp superv audio power booster,80w,4a strb pwr,rd
$2,271.84
Add to cart
-

Wheelock (SP40S-D) Safepath multifunction facility commu sys w/ a 10-min timeout feature
$2,246.59
Add to cart
-

Wheelock (SP4-LOC-FB) Local operator console, flush mount
$1,901.19
Add to cart
-

Silent Knight (SP-TR) Sht mtl,trim ring kit,5600/5700,sk
$59.08
Add to cart
-

Honeywell (SP-2/MNS) Announcement evacuate sign
$512.23
Add to cart
-

Hochiki (SOC-24VN) Photoelectric smoke detector, no reed switch
$38.04
Read more