Custom Shortcode – Register Shortcode Posted on March 24, 2017 by Michael Beckwith public function register_shortcode() { cptui_register_shortcode( array( $this, 'random' ) ); }