setup(); } return self::$instance; } protected function setup() { add_shortcode( 'A_FAQ_Builder', [ $this, 'afb_shortcode_generator' ] ); } public function afb_shortcode_generator( $atts = array() ) { $atts = array_change_key_case( $atts ); $args = shortcode_atts( Helper::$defaults, $atts ); $value = get_post_meta( $args['id'], '_afb_content', true ); if ( isset( $value['type'] ) && 'content' === $value['type'] ) { include 'templates/content.php'; return wp_kses_post( $html ); } } }