Contributors: the_webist
Requires at least: 4.5
Tested up to: 6.4.2
Stable tag: 4.3.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Helper code for the NCC website.
I've built the NCC website using Elementor and the Hello Elementor theme. This is where I add additional code and CSS.
- Lowercasing name in composer.json.
- Updating
composer.json
to allow for deploying via Composer inside the new Bedrock boilerplate version of the NCC Agent website.
- Updating Invalid Carrier Name alert email to go to hard-coded email address.
- BUGFIX: Checking for array before running
usort()
inacf_get_product_carriers()
.
- Moving additional Carrier content behind "Requires Authentication" option (i.e. "Request a Product Information Kit", "Contract Online", Document Library link, and "Quick Links").
- Adding "Requires Authentication" option for viewing Carrier Products.
- Adding inline CSS to alert generated by
ncc_get_alert()
.
- BUGFIX: Updating Team Member bio in
[team_member_list]
9to usewpautop
instead ofapply_filters( 'the_content', ... )
. - Updating Product Description in
acf_get_carrier_products()
to usewpautop
instead ofapply_filters( 'the_content', ... )
.
- Adding Marketer's calendar link to
[team_member_list]
. - Removing link to Marketer's page from
[team_member_list]
. - Removing link to Marketer's page from "My Marketer" widget.
- Adding ActiveCampaign JS tracking code.
- Disabling "HubSpot Marketer Chat" in the REST API.
- Adding validation for
wordpress_and_activecampaign_registration
form. - Disabling HubSpot integrations. Specifically, we're removing the HubSpot tracking code from the footer by not including
lib/fns/hubspot.php
innccagent-extras.php
.
- Adding creation of ActiveCampaign contacts from new user registration.
- Adding
ncc_get_state_name()
for retrieving a state name given a two letter state abbreviation.
- Updating Product Finder product listings by changing "State Availability > Current as of" to "Last review date:" and removing the "Current as of" date for "Plan Information".
- Disabling
gform_confirmation
hook because having this hook enabled was preventing a page redirect confirmation for the "Online Contracting" form.
- Checking HubSpot chat status before attempting to open.
- Adding Marketer Chat to Product Finder.
- Adding Marketer Chat to
[marketer_contact_details]
shortcode.
- Updating "Chat with..." link in
[mymarketer]
to use the Marketer's first name.
- Updating "Schedule a Meeting" link in
[mymarketer]
to include the Marketer's first name.
- Initial HubSpot chat setup for Marketers.
- Adding "Chat Now" link to the
[mymarketer]
shortcode used on the Agent Dashboard.
- Adding
.BambooHR-ATS-Jobs-List
to exclusions in CSS for list item bullets.
- Adding
.BambooHR-ATS-Department-List
to exclusions in CSS for list item bullets.
- Adding trailing slashes to URLs.
- Setting GravityForms submit buttons to
#fe0000
.
- Disabling "Close All" when opening accordion sections in
accordion.js
.
- Updating
ncc_is_elementor()
toncc_is_elementor_edit_mode()
. The function was previously reporting whether or not the current page was built with Elementor. What we want to know is if we are editing inside Elementor, and now the renamed function correctly reports that information.
- Adding Elementor display for
[contracting_confirmation]
shortcode. - Adding
ncc_is_elementor()
tolib/fns/utilities.php
for detecting if the view is from inside the Elementor Editor.
- Adding
[contracting_confirmation]
shortcode which displays the "Thank You" page information found in "NCC Settings > Online Contracting".
- CSS Tweak: Removing NCC Dark Grey for heading color inside Beamer widget.
- Adding Product Finder Help Graphic option to "Product Finder" page settings.
- Bugfix: Product Finder Table was loading results when no fitlers were selected. To fix I added an additional condition for resetting the table when there is a saved state with empty values. Previously, I was only checking for
null
values.
- Adding Issue Dates to Carrier > Product pages.
- Updating invalid Carrier > Products redirect to a 301 Redirect.
- Disabling
.fa-home
incache-busters.css
.
- Saving Product Finder DataTables data in a single location so that the saved state for the finder carries over between different pages (e.g. settings on
/product-finder/
will carry over to/plans/
).
- Adding a 302 Redirect for invalid Carrier > Products so that we'll redirect back to the parent Carrier.
- Loading
.fa-bars
and.fa-home
via inline CSS to avoid "FLUC" ("Flash of Unstyled Content") due to Font Awesome being cached and deferred.
- Adjusting
plan-by-state-selector.js
to dynamically reference the proper browser Local Storage path based on the page slug for the Product Selector.
- Rewriting Product Import/Export for better CSV handling.
- Only load
products-import-export.js
on "Carriers > Import/Export" and "Products > Import/Export".
- GUI for Import/Export of Carrier > Products.
- Adding required
permission_callback
fornccagent/v1/products
andnccagent/v1/verifyAccount
.
- Adding "Plan Year" to Carrier > Products.
- "Plan Year" displays in the Product Finder, individual Product pages, and Carrier > Product pages.
- "Plan Year" is included in
wp ncc carriers export
andwp ncc carriers export
.
- Adding proper user registration validation via the
elementor_pro/forms/validation
hook.- Checking user email for duplicates.
- Checking NPN/username for duplicates.
- Updating "Kit Request" text in product finder and on Carrier pages.
- Adding background-color and padding to
.kit-details
in Kit Request section.
- Updating VPN Link field to a text field to support VPN paths rather than full URLs.
- Leaving
<script/>
tags in message returned byget_online_contracting_message()
to allow for page redirects by GravityForms JS.
- Checking for existence of user with NPN when running
register_user_and_send_lead_to_hubspot()
.
- Setting new users' username to their NPN when running
register_user_and_send_lead_to_hubspot()
.
- Only retrieve
post_status=publish
pages for Supercrumbs dropdowns.
- Correcting typo in supercrumbs: "Anncillaries" to "Ancillaries".
- SEO Title filtering for Carriers, Products, and Carrier > Products.
- Updating supercrumbs to work with Product Finder located at
/product-finder/
URL.
- BUGFIX: Inlining
accordion.js
was causing issues with NitroPack, so I've enqueued it viawp_enqueue_scripts()
.
- Adding Issue Ages to Carrier Product listings.
- Adding Handlebars processing with
ncc_hbs_render_template()
.
- Updating Product Kit request text to support
typeof selectedState === 'undefined'
in the Product Finder. - Removing chevron bullets from lists in HubSpot forms.
- Disabling password strength meter on
wp-login.php
.
- Removing "Black Book: Agent Resources" from drop down links in the "Black Book" section.
- Moving "Prescription Drug Plan" up with the Medicare products in the Product Finder drop down.
- Updating Carrier Document Library alert to reference the "Back" button.
- Correct capitlization for "CSO" and "CSI" in Carrier Documents Library breadcrumbs.
- Adding directory and file icons to the Carrier Documents Library.
- Updating the CSG API route to authenticate users via an all numeric value for "Email" which means we are authenticating against the user's NPN or by an email address which means we are authenticating against the user's
user_email
field in their profile.
- Product page edits:
- Trailing slashes for Product + Carrier links in
acf_get_product_carriers()
. - Responsive CSS for Carrier listing in
acf_get_product_carriers()
. - Updated error message + admin email for invalid Product + Carrier URLs.
- Trailing slashes for Product + Carrier links in
- BUGFIX: Correcting the URL generated for "View this plan information as a web page." on non-accordion Carrier > Product listings.
- BUGFIX: String concatenation issue was preventing Plan Information from displaying on Medicare related products.
- Adding
ncc_is_medicare_product()
for checking product titles to see if they're medicare products.
- Disabling shortlinks.
- Restricting Marketer Thumbnail size limit to Product Finder (this fixes the small marketer photos on the Staff and Marketer pages).
- Bugfix: Checking for an object in
acf_get_carrier_products()
as deleted Products remove the object reference from the ACF field.
- Removing left/right border from Plan Information on Carrier > Product pages without accordions.
- Add trailing slashes to links.
- Adjusting line-height for "Products by State" button in Carrier Docs Library.
- Not capitalizing "by" in Carrier Docs Library breadcrumbs.
- Updating
.elementor-alert .elementor-alert-description
font-size to 16px. - Carrier Document Library edits:
- Using a slash as the seperator for the breadcrumbs.
- Increasing font-size to 18px.
- Moving the "Back" button above the breadcrumbs and changing the button text from "To Parent Directory" to "Back".
- Special styling for "Products by State" Carriers.
- Showing extra dropdown items in Supercrumbs on "All Carriers" and "All Products" pages.
- Updating Product Finder Marketer Display to work on wide screen layout.
- Fixing warnings related to unset variables.
- Adding a note in Product Finder which targets IE as follows:
- We use a media query to target IE 10 and 11 (link).
- For <= IE 9.X.X, we use IE Conditional tags.
- Adding
css_classes
attribute toncc_get_alert()
.
- Setting Product Finder page length to 40.
- Specifying supercrumb dropdown pages on the Carriers & Products page.
- Matching Product Finder pagination style to the rest of the site.
- Adding
<meta name="format-detection" content="telephone=no">
to<head>
to prevent automatictel:
linking on mobile.
- Product Finder edits:
- Centering pagination below Product Finder.
- Setting page length to 30.
- Updating Carrier > Product accordions.
- Updating Product Finder accordions.
- Updating link text for "${carrier} Agent Support Black Book" and "${carrier} Document Library" in Quick Links.
- Restoring "Big CTAs" to Carrier > Product pages.
- Setting headings to h3 in Product Finder.
- Adding a special cases switch to breadcrumbs which handles the Products and Carriers pages.
- Linking Marketer photo.
- Restoring My Marketer display.
- Tweaking the text linking to Marketer pages (i.e. "See the states
{firstname}
serves and testimonials from agents."). - Standardizing the product layout between the Product Finder and Product pages.
- Bug fix: Properly escaping variable for
${selectedState}
in Product Finder.
- Product Finder updates:
- Bug fix: Fixing "State Availability" heading when a state isn't selected.
- Italizing note for Medicare products and adding note to PDP products.
- Adding a "Quick Links" header above the quick links.
- Adding image bullets to blog post content.
- HOTFIX: Updating the
li
background-image CSS specificity so that it doesn't break the layout of the Mega Menu.
- Updating
li
background-image to apply toul > li
inside.elementor-widget-container
.
- Updating marketer testimonials heading from "Testimonials" to "Testimonials from Agents".
- Adding "See {team_member's} testimonials and states served." link to marketers listing.
- Only show Carrier Docs Directory alert to logged in users.
- Adding
[marketer_states]
shortcode. - Adding "Log Out" to "My Dashboard" link.
- Updating
[supercrumbs]
for paginated archives.
- Product Finder tweaks:
- Adding review dates.
- Adding "Issue ages..." to top of product description.
- Adding "Some information may vary by state..." note to Medicare products.
- Adding extra links below Product description.
- Styling adjustments to the Product Kit Request CTA.
- Clearing a saved Carrier when using the "Plan by State" drop down.
- Moving Standard Carriers above SureLC Carriers message on thank you page for signing up for Online Contracting.
- Updating the navigation note above the Carrier Documents Library.
- Updating
lib/fns/utilities.php::ncc_get_alert()
to support an emptytitle
.
- Updating Carrier Documents Library to "smooth scroll" to the top of the page every time we load a new directory listing.
- Adding Company field to user registration and displaying Company field on user profile.
- Adjusting Carrier > Products code to remove unpublished product prior to building the HTML output.
- Turning off "email change" notification when importing users via
wp ncc users import
.
- Adding switch to disable "Delete User" message upon user deletion.
- Checking to see if a variable exists before trying to add associated user meta field to DB.
- HOTFIX: Checking for a variable before doing a comparison inside
custom_id_attribute()
function for WP Nav Menu.
- Updating user import:
- Setting NPN as username.
- Saving all additional user meta provided in CSV.
- Adding HTML id attribute to
mobile-mega-menu-extra-links
menu items.
- Adding
Alt_Product_Name_2
option towp ncc carriers import/export
.
- Adjusting Top Bar "Log In or Register" link to point to
/login-register/
.
- Removing unpublished Carriers from
acf_get_product_carriers()
.
- Dequeuing Font Awesome icons from Elementor.
- Adding
[custom_loop_post_excerpt]
for use inside an Ele Custom Skin.
- Updating bottom margin for
ul > li
elements. - Adding
Desc_Review_Date
andStates_Review_Date
to Carrier > Products. - Removing
Review_Date
from Carrier > Products.
- Adding "Select a state..." default option for Plan by State selector when user is not logged in.
- Adjusting blog breadcrumbs to include a link to the "blog" and not show the title of the post when viewing a post single.
- Removing Contract Online CTA from the top of Carrier pages.
- Adding Quick Links to main Carrier page.
- Reworking layout of Product Finder results to function like an accordion (titles only).
- Note to <= IE 11 users about the Product Finder not working in their browser.
- Adjusting bullets for lists such that they don't scale down for each subsequent list item.
- Bumping Carrier Documents Library min-height to 1200px.
- Setting
min-height: 800px
for the Carrier Documents Library to prevent "page jump to footer" on "shorter" listing views. - Updating "log in" link for logged out users who access the Carrier Documents Library.
- Setting "Cigna - Medicare Advantage Only" to "Standard Contracting" and "Cigna - All but Medicare Advantage" to "SureLC".
- Product Finder: Moving "State Availability" inside "Plan Details".
- Adding navigation note for Document Library users.
- Added CSS to prevent background/ scroll while JetMenu mega menu is open.
- Added CSS utility classes for showing/hiding mobile mega menu items based on user's logged-in status.
- Setting ul > li bullets to "chevron-circle-right".
- Left aligning text for Product Finder dropdowns and Marketer Display.
- Removing transient for
[team_member_list/]
query.
- Changing bulleted list bullets to NCC Navy.
- Updating link text from "Permalink:..." to "View this information as a web page."
- Changing "Log In" link text to "Log In or Register".
- Adding a transient for
[team_member_list/]
query. - Adding bulleted list options.
- Allow Plan by State Selector to function when the user has not selected a "State", but we have a saved "State".
- Pre-select the Plan Selector when we have a saved "State".
- Making chiclets look less "clickable".
- Product Finder: Made Market's telephone number a clickable link.
- Adding Product Kit Request and Online Contracting CTAs to Carrier pages.
- Skipping non-published products during Carrier export.
- Not showing non-published products in Carrier accordion.
- Adding the Online Contracting settings.
- Preventing Product Finder Selector from redirecting when a "State" has not been selected.
- Adding Product Finder Selector notification message below drop down.
- Adding "by State" to the Product Finder Selector heading.
- Plan by State Selector which facilitates loading the Product Finder with the State and Product selected.
- Updating Kit Request URL.
- Adding Product Kit CTA to Product Finder product descriptions.
- Adding scroll to top when user changes the page for the Product Finder.
- Updating the sort for the Product Finder > Product dropdown (Medicare products first followed by all other products in alphabetical order).
- Updating Product Finder "See more information right here" link text to "See plan details right here".
- HOTFIX: Marketer avatar was overflowing Product Finder.
- Updating Quick Links:
- Restoring link back to Carrier and setting link text to "All ${carrier_name} Products".
- Updating link text for online contracting to "Contract with ${carrier_name} Online".
- Styling for Marketer Testimonials.
- Adding Marketer's state to the marketer title displayed in the Product Finder.
- Mobile styling tweaks to the marketer display in the Product Finder.
- Adding a
create_user_message
.
- Removing
ncc_set_html_mail_content_type()
and setting the content type directly in calls towp_mail()
with the proper email header.
- Adding an NCC Settings > Email page for defining the "Delete User Message" sent to a user whose account has been deleted/unapproved.
- Implementing ACF JSON storage for keeping ACF settings in sync.
- Have WordPress generate the user password when submitting the Elementor form named
wordpress_and_hubspot_registration
. - Updating link for "Register". Changing from
/login
to/register
. - Alerting user when trying to register with an email that already exists.
- Updating
.details-link
and#reset-form
links to match heading font.
- Updating "Free Carrier Contracting Kit" to "Free Carrier Product Kit".
- Styling for Product Finder: adjusting
font-family
for various elements.
- Square aspect ratio for Team Member photos.
- Matching Marketer Testimonial display to Elementor Testimonial.
- HOTFIX: Moving
preventDefault()
call in accordion click handler so that Carrier > Product permalinks will work.
- Adding Carrier Docs link to Quick Links.
- Adding transient caching to
ncc_get_template()
. - Refactoring
.accordion-toggle
JS to work with all child elements.
- Removing
<code/>
around state chiclets. - Disabling loading of fonts via
main.scss
to allow theme/Elementor to handle this. Doing so restores<strong/>
to proper font-weight. - Updating Font Awesome icons.
- Supercrumbs: Adding Carrier name on Carrier and Carrier > Product pages.
- HOTFIX: Commiting compiled SCSS.
- Product Finder design updates:
- Removed underline of product titles.
- Removed zebra striping of product results.
- Added Carrier > Product permalink to "More information" child row.
- Increased cell padding for result rows.
- Updated state "chiclet" color scheme.
- Changed "Product Details" link text to "See more information right here".
- Removed parent product table cell's bottom border which child row is displayed.
- Repositioned "reset form" link next to "Product Finder" header.
- Quick Links updates:
- Removed "Back to ${carrier}" link.
- Changed "Contacting Kit" link text to "Product Kit".
- Fixed "Online Contracting" link.
- Capitalizing Carrier Document Library breadcrumbs.
- Standardizing HTML heading elements for Carrier > Product pages.
- Displaying Carrier Document Library link on Carrier > Products pages.
- Adding
<meta http-equiv="X-UA-Compatible" content="IE=edge;" />
for IE11 compatibility.
- Adding "reset form" link to Product Finder.
- Updating Carrier Documents library to use secure links (i.e. https).
- Adding
HS_AGENT_REGISTRATION_FORM_ID
towp-config.php
. - Adding
alternate_product_name
towp ncc carriers import
. - Testing for empty "date" fields inside
_map_row_values()
to prevent "Review Date" and "Source File Date" from being set as the current day's date when that field is empty in the CSV.
- Updating labels for Cigna in the "Contract Online" GravityForm.
- Updating all trailing supercrumbs to turquoise.
- Removing "Carrier", "Product", and "Carrier > Product" breadcrumb when we are on one of those pages.
- Adding Carrier name to Product permalink text.
- Translating "Lost your password?" to "Forgot password?"
- Changing
/my-profile/
to/dashboard/
. - Filtering Top Bar nav with
add_dashboard_link()
to provide "My Dashboard" link to logged in users. - Adding
[logouturl]
shortcode for use in Elementor buttons or anywhere else we need to add a logout link. - Updating supercrumbs on Team Member pages to display "About > Staff".
- BUGFIX: Correcting reference to Product Finder API.
- Changing "Plan Finder" to "Product Finder".
- Updating
Register
link to redirect to/login/
. - Updating Supercrumbs to only show the current page if that page has child elements.
- Updating Plan Finder product links to use
/carrier/${carrier}/${product}
permalinks. - Updating current item for Supercrubms to use
<span/>
instead of<strong/>
. - Updating
ul > li
chevrons to#26ace2
. - Handling links to
/product/${product}/${carrier}
. Showing a list of products under a category when there are multple ones for a Carrier or redirecting to the/carrier/${carrier}/${product}/
page if there is only one.
- Styling for Supercrumbs: increasing right margin from 5 to 8px, updating down chevron to NCC Blue
#26ACE2
.
- Accouting for multiple names in a Team Member's first name.
- Updating default Avatar.
- Plan Finder: Updating styles for plans.
- Plan Finder: Updating styles for marketer display.
- Added
permalink
to Team Member REST API.
- Online Contracting: Adding options for Aetna/Cigna SureLC & Standard sign ups.
- Supercrumbs: Removing "bold" text from last breadcrumb.
- Updating the breadcrumb separator to a slash.
- Removing hyperlink URL display from print CSS.
- Adjusting CSS for ul > li with chevrons.
- Updating Plan Finder accordion control.
- Updating CSS for Carrier products accordion.
- Updating link text for meeting schedule link (e.g. "Book a time with
$firstname
") ncc_get_template()
now acceptssearch
andreplace
arguments.- Adding
npm run devbuild
for building dev CSS. - FIX: Removing chevrons from Gravity Forms checkbox.
- FIX: Removing chevrons from
.elementor-icon-list-items
.
- FIX: Removing chevrons from Gravity Forms forms.
- FIX: Removing chevrons from directory lister.
- Updating Agent Docs login link to point to
/login/
.
- Adding "Quick Links" for display at the bottom of "Product > Carrier" and "Carrier > Product" pages.
- Adding chevron SVG as list item image for unordered lists.
- NEW: Saved
state
for Plan Finder. Plan Finder now remembers your search settings after you browse to another page on the site.
- NEW:
ncc_get_template()
for loading templates fromlib/html/
. - Converting
lib/fns/utilities.php
to function name-based namespacing. - Adding templates for "Contract Online CTA" and "Free Carrier Contracting Kit CTA".
- NEW:
[carrierproduct]
shortcode. - NEW:
[productcarrier]
shortcode. - Added permalink to
[acf_carrier_products]
product descriptions. - FIX: Updating the column number for sorting in the Plan Finder product dropdown.
- Adding rewrite tag for
carrierproduct
. [carrierdocs]
shortcode.[carrierproduct]
shortcode.
- Adding rewrites for
/carrier/${carrier}/${product}
paths.
- Disabling Custom Login URL to allow for functioning of iThemes Security Plugin.
- Adding login redirect to user dashboard after login.
- Updating
wp ncc carriers import
to handle Lower/Upper Issue Age import
- Plan Finder: Updating drop down placeholder styling (
color: #000; font-weight: normal
). - Plan Finder: Updating
plan-finder.js
to reference the correct column when ordering Products. - Updating
[mymarketer]
to show nothing when no Marketer is assigned to the user. - Adding
global.js
withe.preventDefault()
for main menu link clicks wherehref="#"
. - Updating
[team_member_list]
to link to all Marketers.
- Adjusting the CSS for Marketer photos.
- Adding a "No Marketer Found" alert to
[mymarketer]
when a user either doesn't have a Marketer assigned or their assigned Marketer has apost_status
other than "publish".
- Adding calendar link to Marketer's display
- Adding import/export of "Review Date", "Source File Name", and "Source File Date" for
wp ncc carriers import/export
.
- Adding
wp ncc users import
. - Updating user import to include
NPN
andMarketer
. - Adding
Email
column for admin Team Member CPT list.
- Adjusting CSS for Marketer Display in Product Finder.
wp ncc import
now creates new Carrier Products when noRow_ID
is provided.- Added
_states_to_array()
towp ncc
to handle cleaning States data.
- Removing
title
attribute from page in[supercrumbs]
. - Adding
--carrier=<carrier_name>
option towp ncc export
.
- Adding
[team_member_list]
.
- Adding
[marketer_contact_details]
.
- Adding
[marketer_testimonials]
.
- Moving user's Team Member/Marketer association to the user's meta.
- Responsive styling for
[mymarketer /]
.
- Styling for Team Member photos in admin listing.
- Initial implementation of
[mymarketer /]
shortcode for displaying Marketer information on the My Profile page.
- Adding
Staff Type(s)
andPhoto
columns to Team Members admin listing. - Adding
admin.css
for styling Team Members columns admin listing.
- Adding dropdown to last page in breadcrumb for
[supercrumbs]
. - Refactoring "down chevron" for
[supercrumbs]
.
- Adding
[supercrumbs]
shortcode for "Super Breadcrumbs" with dropdown menus for child pages.
- Removing unpublished products from the Plan Finder.
- Adding Marketer Database
- Adding Plan Finder Help Graphic option
- Adding
wp ncc export
for exporting a CSV of Carriers and Products - Adding
wp ncc import
for importing a CSV of Carriers and Products
- Bug fix: Striping HTML from DataTables
<select />
options.
- Linking Carriers and Products in search results
- Updating NPM packages
- Adding
GitHub Plugin URI
to plugin header for compatibility with the GitHub Updater plug
- Initial release