Skip to content

Instantly share code, notes, and snippets.

@dovy
Last active January 3, 2016 10:39
Show Gist options
  • Select an option

  • Save dovy/8451121 to your computer and use it in GitHub Desktop.

Select an option

Save dovy/8451121 to your computer and use it in GitHub Desktop.

Redux Shortcodes

A useful class which wraps a few core WordPress functions that, we think, should be inherit in WordPress. So instead, we made a class. Here's a brief overview of the features.

[bloginfo data=""]

Get any data available to the bloginfo() function. A full list of options is found: http://codex.wordpress.org/Function_Reference/bloginfo

[themeinfo data=""]

Get any of the values of the wp_get_theme function. A full list of options is found: http://codex.wordpress.org/Function_Reference/wp_get_theme

[date data=""]

Pass any valid string into data and get the formatted date. A good page for details about availalbe options can be found: http://www.php.net/manual/en/function.date.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment