WordPress.org

Ready to get started?Download WordPress

Forums

Create a variable that is accessible in templates? (1 post)

  1. GaryKing
    Member
    Posted 7 years ago #

    How do I create a variable in a plugin that is accessible in templates?

    For instance, if I set $variable = 'stuff'; then I type <?php echo $variable; ?> in a template, how do I get it to output 'stuff'?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.