Skip to content

Special Strings in the "new_admin_email_content" filter starting with ### not being parsed correctly #236

@shawnhooper

Description

@shawnhooper

Originally posted in documentation GitHub WordPress/Documentation-Issue-Tracker#1208

Issue Description

Special Strings in the "new_admin_email_content" filter documentation are incorrect. They are missing the leading ### characters.

URL of the Page with the Issue

https://developer.wordpress.org/reference/hooks/new_admin_email_content/

Section of Page with the issue

Description

Why is this a problem?

Using the names specified in the documentation will result in the strings not being properly replaced when the new admin notification email is sent.

Suggested Fix

  • USERNAME### should be changed to ###USERNAME###
  • ADMIN_URL### should be changed to ###ADMIN_URL###
  • EMAIL### should be changed to ###EMAIL###
  • SITENAME### should be changed to ###SITENAME###
  • SITEURL### should be changed to ###SITEURL###

How it appears in documentation

image

How it appears in code

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions