| 1 |
<?php namespace Datafeedr\Api\Shortcodes; |
| 2 |
|
| 3 |
use Datafeedr\Api\Wuwei\Shortcode\Shortcode_Interface; |
| 4 |
|
| 5 |
/** |
| 6 |
* Class TestShortcodeMsg |
| 7 |
* |
| 8 |
* Add a test Shortcode. |
| 9 |
* |
| 10 |
* @since 2.0.0 |
| 11 |
*/ |
| 12 |
class TestShortcodeMsg implements Shortcode_Interface { |
| 13 |
|
| 14 |
/** |
| 15 |
* {@inheritdoc} |
| 16 |
*/ |
| 17 |
public static function get_name() { |
| 18 |
return 'datafeedr-test-shortcode'; |
| 19 |
} |
| 20 |
|
| 21 |
/** |
| 22 |
* {@inheritdoc} |
| 23 |
*/ |
| 24 |
public function generate_output( $attrs, $content = '' ) { |
| 25 |
return '<strong>Our shortcodes are working.</strong>'; |
| 26 |
} |
| 27 |
} |