# 19.1 Hiển thị shortcode (ok)

![](https://1113999984-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M84NwP_L_qEsBHOa2xo%2F-MTj621j935EOb5_-Pwt%2F-MTjBj8tvMBEMv9cZAfS%2FScreenshot_2.jpg?alt=media\&token=1923d2b9-77fb-45aa-b6b8-beae6c85c210)

![](https://1113999984-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M84NwP_L_qEsBHOa2xo%2F-MTjC38XOaz9Y4fvun6E%2F-MTjLVkc5ibJlhtb1k6S%2FScreenshot_3.jpg?alt=media\&token=4446ca98-cb7f-449f-a1af-c1f2d798333b)

![](https://1113999984-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M84NwP_L_qEsBHOa2xo%2F-MTj621j935EOb5_-Pwt%2F-MTjBpvdgBPqY0e7lB8m%2FScreenshot_3.jpg?alt=media\&token=00607945-3573-41c9-a7f9-8d4e1390140a)

C:\xampp\htdocs\test\wp-content\plugins\plugin-name\public\class-wpf-public\_ct.php

```
<?php  
	class WPF_Public_CT {
		private $plugin_name;
		private $version;
		public static function get_instance() {
      static $instance = null;
      if ( $instance === null ) {
          $instance = new self;
      }
      return $instance;
    }
    private function __construct() {
    	$this->plugin_name = WPF_CT::get_instance()->get_plugin_name();
      add_shortcode( 'searchandfilter', array( $this, 'shortcode' ) );
    }
    public function shortcode( $atts ) {
      echo 'aaaaaa';
    }
	}
?>
```
