handler = new AAM_Service_Shortcode_Handler_Content( $args, $content ); } elseif ($cnt === 'loginredirect') { $this->handler = new AAM_Service_Shortcode_Handler_LoginRedirect( $args, $content ); } elseif ($cnt === 'loginform') { $this->handler = new AAM_Service_Shortcode_Handler_LoginForm($args); } else { $this->handler = apply_filters( 'aam_shortcode_filter', null, $cnt, $args, $content ); } } /** * Process the short-code * * @return string * @access public * * @version 7.1.0 */ public function process() { $handler = $this->handler; if (is_object($handler) && method_exists($handler, 'run')) { $result = $handler->run(); } elseif (is_string($this->handler)) { $result = $this->handler; } return $result; } }