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

July 26, 2022
Apply now for public agency scholarships for 2023 Convention & Traffic Expo

ATSSA’s Public Agency and Marty Weed Engineering scholarships offer department of transportation DOT officials the opportunity to participate in the largest gathering of roadway safety infrastructure officials in North America. There they can see the latest innovations in roadway safety, interact with companies that produce them and engage with industry experts on everything from pavement marking and traffic control to technology designed to protect roadway workers and interact with connected and automated vehicles. ATSSA’s 53rd Annual Convention & Traffic Expo takes place in Phoenix, Feb. 17-21 and will include the New Products Rollout, Innovation Awards that go to the top products as judged by DOT officials, and the ever-popular Circle of Innovation where transportation officials from across the country and around the globe hear about the latest topics. Scholarship applications are due by Sept. 19. Applicants will be notified by Oct. 12. ATSSA’s Public Agency and Marty Weed Engineering scholarships offer department of transportation DOT officials the opportunity to participate in the largest gathering of roadway safety infrastructure officials in North America. There they can see the latest innovations in roadway safety, interact with companies that produce them and engage with industry experts on everything from pavement marking and traffic control to technology designed to protect roadway workers and interact with connected and automated vehicles. ATSSA’s 53rd Annual Convention & Traffic Expo takes place in Phoenix, Feb. 17-21 and will include the New Products Rollout, Innovation Awards that go to the top products as judged by DOT officials, and the ever-popular Circle of Innovation where transportation officials from across the country and around the globe hear about the latest topics. “We value the partnerships we have with departments of transportation and want to support them in providing this valuable opportunity to attend our Convention & Traffic Expo,” ATSSA President & CEO Stacy Tetschner said. “We urge transportation officials from local, state and federal agencies to apply for the scholarships that help them take advantage of this great event.”   ATSSA is offering more than 100 scholarships to public agency officials to attend the 2023 Convention & Traffic Expo. Public agency officials at city, county, state and federal agencies are encouraged to apply for a scholarship, which provides: Complimentary registration to the 2023 Convention & Traffic Expo Reimbursement of travel expenses up to $1,500, including coach airfare, meals, and lodging at one of the hotels in ATSSA's room block. Note: Hotel reimbursements are not available for hotels not included in the room block. Two scholarships are available – the Marty Weed Engineering Scholarship and the Public Agency Scholarship. The Marty Weed Engineering Scholarship is named for a longstanding member of ATSSA who spent 33 years with the Washington State Department of Transportation engaged in roadway safety infrastructure. This scholarship is designed to provide financial assistance for new engineers employed by a public agency who specialize in work zone safety and temporary traffic control. Individuals meeting all of the following criteria are eligible to apply for the Marty Weed Engineering Scholarship: Employed by a public agency city, county, state or federal as an engineer or P.E. at the time the application is submitted and Have a maximum of seven years of work experience and Specialize or have a strong interest in work zone safety and temporary traffic control. Everyone employed by a city, county, state or federal agency is encouraged to apply for a Public Agency Scholarship. Preference is given based on the following criteria, which are not listed in rank order: Active Public Agency membership either Firm or Individual Previous recipient of an ATSSA scholarship "Key decision makers" for the agency Public agency officials employed in traffic safety/safety/work zones Public agency officials committed to attending all four days of ATSSA’s Convention & Traffic Expo, Feb. 18-21. Scholarship recipients are required to participate in all Convention activities beginning at 8 a.m., Sunday, Feb. 19 through 1 p.m., Tuesday, Feb. 21. Those who are members of ATSSA technical committees are encouraged to participate Saturday, Feb. 18. ATSS Foundation events are held on Friday, Feb. 17.   Scholarship applications are due by Sept. 19. Applicants will be notified by Oct. 12. Anyone who qualifies for but is not awarded one of the two Marty Weed Engineering Scholarships will automatically be considered for a Public Agency Scholarship.

July 18, 2022
Help teen drivers safely navigate work zones

The ATSS Foundation is partnering with Work Zone Safe to teach teen drivers how to safely navigate roadway work zones. The online program is currently only available to teens who live in Oklahoma but could be expanded to other states. Learn about the program and how to bring it to your state during a free webinar, "No More Pamphlets! Modernizing Teen Driver Work Zone Safety," on Aug. 9, 2-3 p.m. ATSSA members and representatives from departments of transportation DOTs are encouraged to attend. The ATSS Foundation is partnering with Work Zone Safe to teach teen drivers how to safely navigate roadway work zones. The online program is currently only available to teens who live in Oklahoma but could be expanded to other states. Learn about the program and how to bring it to your state during a free webinar, "No More Pamphlets! Modernizing Teen Driver Work Zone Safety," on Aug. 9, 2-3 p.m. ET.  ATSSA members and representatives from departments of transportation DOTs are encouraged to attend. Webinar participants include: Lori Diaz, Director, The ATSS Foundation moderator Tom Robins, founder, Work Zone Safe Haley Norman, Chapter President, Oklahoma ATSSA Chapter Paul Harris, Director, Oklahoma Highway Safety Office Lauren Parrish, P.E., State Traffic Engineer, Oklahoma Department of Transportation Marty Farris, Traffic Engineering Division, Oklahoma Department of Transportation Thanks to a grant from the PPG Foundation of Pittsburgh, The ATSS Foundation worked with Work Zone Safe to develop the free interactive program that teaches teen drivers the importance of work zone safety including the importance of safe driving habits, the results of speeding and inattentiveness, and how to read work zone signage, operate within queuing and navigate night work zones. It also covers how to understand work zone devices, pavement markings and mobile operations. mobile operations. In the first year of its adoption in Oklahoma, more than 12,000 Oklahoma teens representing more than 250 high schools took part in the work zone safety program. Register now for the free webinar to help teach teen drivers the importance of work zone safety.

July 7, 2022
ATSS Foundation partners to offer teen driver education for work zones

The American Traffic Safety Services ATSS Foundation is partnering with Work Zone Safe to educate teen drivers on how to safely navigate work zones. Thanks to a grant from the PPG Foundation of Pittsburgh, The ATSS Foundation worked with Work Zone Safe to develop a free interactive training program that teaches teen drivers the importance of work zone safety including how to navigate a work zone. The curriculum addresses the importance of safe driving habits, the results of speeding and inattentiveness, and how to read work zone signage, operate within queuing and navigate night work zones. It also covers how to understand work zone devices, pavement markings and mobile operations. mobile operations. “We are excited to be addressing this gap in driver education for teens,” ATSS Foundation Director Lori Diaz said. “The information in this curriculum is critical in helping the next generation of drivers protect themselves and roadway workers as we continue working toward zero deaths on the nation’s roads and highways. We hope departments of transportation in states across the country will be interested in making the curriculum available in their jurisdictions.” The American Traffic Safety Services ATSS Foundation is partnering with Work Zone Safe to educate teen drivers on how to safely navigate work zones. Thanks to a grant from the PPG Foundation of Pittsburgh, The ATSS Foundation worked with Work Zone Safe to develop a free interactive training program that teaches teen drivers the importance of work zone safety including how to navigate a work zone. The curriculum addresses the importance of safe driving habits, the results of speeding and inattentiveness, and how to read work zone signage, operate within queuing and navigate night work zones. It also covers how to understand work zone devices, pavement markings and mobile operations. mobile operations. The work zone safety online course is free and currently available only for Oklahoma teens where completion of the program could qualify the individual for a reduced rate on the family’s insurance policy. “We are excited to be addressing this gap in driver education for teens,” ATSS Foundation Director Lori Diaz said. “The information in this curriculum is critical in helping the next generation of drivers protect themselves and roadway workers as we continue working toward zero deaths on the nation’s roads and highways. We hope departments of transportation in states across the country will be interested in making the curriculum available in their jurisdictions.” The Centers for Disease Control and Prevention notes that motor vehicle crashes are the second leading cause of death for teens and that crash risks are highest in the first months a teen is licensed. In addition, most people killed in work zone traffic crashes are drivers and their passengers. In 2020, 857 people were killed in work zone crashes, 740 of whom were not roadway workers, according to the National Work Zone Safety Information Clearinghouse. Teens who complete the Work Zone Safe course are entered into a monthly drawing for a $500 educational scholarship. The ATSS Foundation is providing funding to award a scholarship each month. The course is open to teens aged 15-19. Every Oklahoma teen who completes the program also receives a one-hour jump pass for Sky Zone in Edmond, Okla. Any state or state department of transportation DOT interested in offering the program can contact Diaz lori.diaz@atssa.com for details on how to adapt the program. The ATSS Foundation is the charitable arm of the American Traffic Safety Services Association.  It was formed in 1988 with the core purpose to promote roadway safety through charitable giving and public awareness programs.