Last active
December 28, 2017 20:31
-
-
Save JohnDeeBDD/b8c1ef2b6c150d620177c391da121ed5 to your computer and use it in GitHub Desktop.
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
<?php | |
namespace myNamespace; | |
//To use this class add this line to your plugin file: | |
// add_shortcode('helloWorld', array(new $SystemActionEnableShortcodeHelloWorld, 'returnShortcode')); | |
class SystemActionEnableShortcodeHelloWorld{ | |
public function returnShortcode(){ | |
$stringHellowWorld = __('Hello world!', 'textDomain'); | |
$shortCodeOutput = <<<stringHellowWorldHerdoc | |
$stringHellowWorld | |
shortCodeOutputHerdoc; | |
return $shortCodeOutput; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment