Skip to content

automatic retrieval of email address if shortcode called on author page #3

@davelester

Description

@davelester

Shortcodes work (or will.. soon!) if an email address or WordPress username is specified. If the username is specified, the plugin looks for the user's email address. Email addresses are what is used to pull a list of badges from Mozilla. But let's say I wanted to include the [openbadges] shortcode on an author page, which is specific to an individual and dynamic?

I'd like to automatically detect if a shortcode is being called on an author page, and if so retrieve the author email to display badges. Yes, it's possible to do this manually, but this approach will keep the shortcode syntax concise.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions