* identified by $target_input_id when the admin selects a page. * * Outputs nothing if no WP pages exist. Stored value is the input's * value (a URL string) — the dropdown is purely a typing aid. * * @param string $target_input_id DOM id of the to populate. * @param string $placeholder Localized "-- Select a page --" label. */ function fiftyonedegrees_render_page_picker(string $target_input_id, string $placeholder): void { $pages = get_pages(); if (empty($pages)) { return; } $picker_id = $target_input_id . '_page_picker'; echo '
'; echo ''; echo '
'; ?>