Last active
February 27, 2018 11:34
-
-
Save alexminza/23dc6c61cfa5754f4de818b5fdbe56dc to your computer and use it in GitHub Desktop.
WooCommerce get_option shortcode - Shortcodes, Actions and Filters plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://codex.wordpress.org/Function_Reference/shortcode_atts | |
$args = shortcode_atts( | |
array( | |
'option' => '', | |
'default' => '', | |
), $atts, 'get_option'); | |
//https://developer.wordpress.org/reference/functions/get_option/ | |
return get_option($args['option'], $args['default']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment