Skip to content

Default attributes #2

@braseidon

Description

@braseidon

Hey there, awesome package! I've already gotten a ton of use for this.

This isn't really an issue, I was just wondering how you would go about adding default attributes for each shortcode. Currently I am creating a new file for each shortcode class, and registering them when the application loads the content. Each shortcode has its own default attributes set as protected variables. If the array_get turns up null, then we grab the default attribute.

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions