Purpose

The [protect-content] shortcode can be used to show or hide small sections of content based on role or status.

Usage

It has three parameters:

operation
Whether to show or hide the content if the conditions are met. Valid values: show or hide (default: show)
role
Which role(s) to require or forbid. Valid values: the internal name of any role (e.g. administrator, non-member, etc.), comma-separated if more than one (default: null)
status
Which status to require or forbid. Valid values: logged-in or logged-out (defaults to null)

Examples

Each code example is followed by the actual shortcode, but you’ll only see it if you meet the conditions.

Show content if conditions are met

[protect-content role="editor"]This content is only shown to Administrators and Editors.[/protect-content]
Result
[protect-content role="author"]This content is only shown to Administrators and Authors.[/protect-content]
Result
[protect-content role="contributor"]This content is only shown to Administrators and Contributors.[/protect-content]
Result
[protect-content role="member"]This content is only shown to Administrators and Members.[/protect-content]
Result
[protect-content role="subscriber"]This content is only shown to Administrators and Subscribers.[/protect-content]
Result
[protect-content status="logged-in"]This content is only shown to logged-in users.[/protect-content]
Result

Hide content if conditions are met

[protect-content operation="hide" role="editor"]This content is hidden from Editors.[/protect-content]
Result
This content is hidden from Editors.
[protect-content operation="hide" role="author"]This content is hidden from Authors.[/protect-content]
Result
This content is hidden from Authors.
[protect-content operation="hide" role="contributor"]This content is hidden from Contributors.[/protect-content]
Result
This content is hidden from Contributors.
[protect-content operation="hide" role="members"]This content is hidden from Members.[/protect-content]
Result
This content is hidden from Members.
[protect-content operation="hide" role="subscriber"]This content is hidden from Subscribers.[/protect-content]
Result
This content is hidden from Subscribers.
[protect-content status="logged-out"]This content is only shown to visitors who aren't logged in.[/protect-content]
Result
This content is only shown to visitors who aren’t logged in.

Lorem Ipsum

Lorem Ipsum

Related News Articles

March 31, 2022
‘Work Zones are a Sign to Slow Down’

FREDERICKSBURG, Va. March 31, 2022 – The transportation industry is taking increasing steps to improve the timeliness of information about active work zones but even before those measures are available nationwide, work zone warnings are important for everyone to heed to get home safely. This year’s National Work Zone Awareness Week is April 11-15 with the theme: “Work Zones are a Sign to Slow Down.” National Work Zone Awareness Week NWZAW, in its 22nd year, is a national public awareness campaign held annually at the start of the spring construction season. It spreads the message that we are all responsible for work zone safety. UPDATE: The livestream of the national kickoff event can be viewed here at 1:30 p.m. ET on April 12. FREDERICKSBURG, Va. March 31, 2022 – The transportation industry is taking increasing steps to improve the timeliness of information about active work zones but even before those measures are available nationwide, work zone warnings are important for everyone to heed to get home safely. This year’s National Work Zone Awareness Week is April 11-15 with the theme: “Work Zones are a Sign to Slow Down.” National Work Zone Awareness Week NWZAW, in its 22nd year, is a national public awareness campaign held annually at the start of the spring construction season. It spreads the message that we are all responsible for work zone safety. Statistics from the National Work Zone Safety Information Clearinghouse show the vast majority of people killed in work zones are motorists, passengers and pedestrians. The most recent statistics show there were 762 fatal crashes in work zones resulting in 842 deaths in 2019. Of those killed, 135 were roadway workers. “National Work Zone Awareness Week was established with roadway workers in mind, but the statistics make it abundantly clear that everyone is at risk in work zones,” ATSSA President & CEO Stacy Tetschner said. “The goal of this week is for motorists to slow when approaching and passing through roadway work zones so everyone makes it home safely.” Statistics for 2019 estimate there were 115,000 work zone crashes—27,000 of which were injury-involved crashes resulting in 39,000 injuries—underscoring the need to observe work zone speed limits and eliminate distractions when approaching and driving through work zones. This year’s National Kickoff Event is scheduled for Tuesday, April 12 and is hosted by the Virginia Department of Transportation VDOT. It will be held at 1:30 p.m. EDT at the Fort Monroe Continental Gazebo, 4 Fenwick Road, Hampton, Va. 23651, which overlooks the Hampton Roads Bridge Tunnel Project. In case of rain, the event will move indoors to the Fort Monroe Theater, located a few blocks from the gazebo. The event will also be streamed live. Watch for details for the livestream at NWZAW.org/participate or the ATSSA blog. Cameron Hutt of Cleveland, Tenn., a college student whose father was killed in a work zone incident in 2006, is scheduled to speak at the National Kickoff Event. Cameron is a senior studying communications at the University of Tennessee and the recipient of a Roadway Worker Memorial Scholarship. Roadway Worker Memorial Scholarships are awarded through The American Traffic Safety Services ATSS Foundation, the charitable arm of ATSSA. The ATSS Foundation awards scholarships to the dependents of roadway workers killed or permanently disabled in work zone incidents. The scholarships are competitive and have a value up to $10,000 with an additional $1,000 possible for students with a strong commitment to volunteerism. NWZAW got its start in 1997 when a group of VDOT employees in southwestern Virginia wanted to dedicate a week to raise awareness of work zone safety among all district employees ahead of the busy roadway work season. The next year, VDOT presented the idea for a national awareness campaign to the American Traffic Safety Services Association ATSSA, which, in turn, approached the Federal Highway Administration FHWA and the American Association of State Highway Transportation Officials AASHTO. The groups finalized plans and launched the first national kickoff event in 2000. NWZAW now includes a theme for each day. April 11 – Work Zone Safety Training Day in which companies are encouraged to pause during the workday for safety demonstrations, discussions about safety policies and other prevention steps to protect people in work zones. April 12 – National Kickoff Event as described above. In addition, departments of transportation across the country and private companies organize events in their locations. April 13 – Go Orange Day when everyone is encouraged to wear orange to show support for work zone safety and the families of victims who have lost their lives in work zones. Photos can be posted on social media with #NWZAW and #Orange4Safety. April 14 – Social media storm in which organizations, companies, agencies and individuals are encouraged to share messages and use hashtags #NWZAW and #WorkZoneSafety throughout social media between 9 a.m. and 4 p.m. EDT. April 15 – Moment of Silence. People are encouraged to take part in this new event for 2022 to remember the people who lost their lives in a work zone incident.   For additional information about NWZAW and its history, check NWZAW.org. The following public service announcements are available for use by the media: “Work zones are a sign to slow down.” That’s the theme of this year’s National Work Zone Awareness Week, set for April 11-15. 762 fatal crashes occurred in work zones in 2019, killing 135 roadway workers. Join us in raising awareness of the importance of slowing your vehicle and staying alert as you approach and pass by a work zone. For more information, visit NWZAW.org. Each year, hundreds of people are killed in roadway work zones. Most of them are the drivers and their passengers trying to travel through the work zone. That means it’s critical for everyone to pay attention. “Work zones are a sign to slow down.” That’s the theme of this year’s National Work Zone Awareness Week, scheduled for April 11-15. For more information, visit NWZAW.org. “Work zones are a sign to slow down.” Work zone crashes killed 842 people in 2019, including 135 roadway workers. Most of the people killed were drivers and their passengers. So slow down and stay alert as you approach and pass by a work zone. Help spread the word during National Work Zone Awareness Week, April 11-15. For more information, visit NWZAW.org.   Additional hashtags for NWZAW include: #NWZAW #SafeWorkZonesForAll #WorkZoneSafety #StandDown4Safety #SaferRoadsSaveLives #GoOrange4Safety

March 4, 2022
3M raises more than $15k through Toward Zero Deaths pledge wall

3M raised $15,279 this year for The ATSS Foundation through its Toward Zero Deaths pledge wall. The fundraiser ran from Jan. 1 through the final day of ATSSA’s 52nd Annual Convention & Traffic Expo. “As the new ATSS Foundation Chair, I can't express enough how grateful I am for support from companies like 3M that share the vision with us to help families that have experienced such horrific work zone tragedies,” said Kevin Shelton. “3M’s yearslong commitment to hosting the pledge wall is a testament to its compassion for the families that have lost a loved one or had one permanently disabled by a work zone incident. It is also a testament to 3M’s commitment to working toward the goal of zero deaths on the nation’s roadways.” 3M raised $15,279 this year for The ATSS Foundation through its Toward Zero Deaths pledge wall. The fundraiser ran from Jan. 1 through the final day of ATSSA’s 52nd Annual Convention & Traffic Expo. The company offered to match donations up to $5,000. Most of the funds raised came in during the Convention. “As the new ATSS Foundation Chair, I can't express enough how grateful I am for support from companies like 3M that share the vision with us to help families that have experienced such horrific work zone tragedies,” said Kevin Shelton. “3M’s yearslong commitment to hosting the pledge wall is a testament to its compassion for the families that have lost a loved one or had one permanently disabled by a work zone incident. It is also a testament to 3M’s commitment to working toward the goal of zero deaths on the nation’s roadways.” This is the seventh consecutive year Minnesota-based 3M has partnered with The Foundation by operating the pledge wall from the start of the year through the Convention & Traffic Expo. In 2021, 3M offered to match donations up to $5,000 but doubled it to bring the total raised to $23,042, making a significant difference for The Foundation in a year in which COVID-19 restrictions prevented it from holding its two largest yearly fundraisers—the Annual Golf Classic and the Sporting Clays Event.

February 24, 2022
Hill & Smith auction raises $28K for The ATSS Foundation

Hill & Smith of Columbus, Ohio, raised $28,000 for The ATSS Foundation through an auction held online Jan. 19 through Feb. 2. The company’s mission is to develop and produce safety-focused products and solutions to protect roadway workers and people traveling the nation’s roadways. That mission aligns with The Foundation’s core purpose to promote roadway safety through charitable giving and public awareness programs, which is why the company chose to hold the fundraiser. “We are grateful for Hill & Smith’s decision to hold the auction and donate this roadway safety item,” said Foundation Chair Kevin Shelton. Hill & Smith of Columbus, Ohio, raised $28,000 for The ATSS Foundation through an auction held online Jan. 19 through Feb. 2. Company officials presented The ATSS Foundation a check on Feb. 13 during ATSSA's 52nd Annual Convention & Traffic Expo in Tampa, Fla. The company’s mission is to develop and produce safety-focused products and solutions to protect roadway workers and people traveling the nation’s roadways. That mission aligns with The Foundation’s core purpose to promote roadway safety through charitable giving and public awareness programs, which is why the company chose to hold the fundraiser. “This auction is our way to continue to raise awareness to this important cause and raise funds for roadway worker families affected by tragic loss, all while working toward zero deaths,” Hill & Smith said in a statement explaining its decision to donate a complete Smart Cushion System for the auction. All proceeds from the auction go to The Foundation. ATSSA member D&M Traffic Services Inc., of Santa Clara, Calif., placed the winning bid for the Smart Cushion, which is a crash attenuator. “We are grateful for Hill & Smith’s decision to hold the auction and donate this roadway safety item,” said Foundation Chair Kevin Shelton, pictured above, second from left. “We are also grateful for D&M Traffic Services for participating and for making the winning bid. These funds will go a long way toward assisting The Foundation’s work in supporting the families of roadway workers killed or permanently disabled in work zone incidents. “We are thankful Hill & Smith chose to partner with The Foundation and for its commitment to our shared mission.” Hill & Smith Inc. designs, manufactures and markets products, services and software. It makes intelligent highway safety systems and develops autonomous solutions, primarily serving the infrastructure, galvanizing, building and construction industries.