Created
December 5, 2012 14:54
-
-
Save wanye71/4216099 to your computer and use it in GitHub Desktop.
array values in wordpress action
This file contains hidden or 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
class NavMenus{ | |
public function test_nav(){ | |
echo array( | |
'one' => 'This is One', | |
'two' => 'This is Two', | |
'three' => 'This is Three' | |
); | |
} | |
} | |
$hello = new NavMenus; | |
add_shortcode('hello', array($hello, 'test_nav')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment