AnsPress::get_form( string $name )
Description #
Get specific AnsPress form.
Parameters #
- $namestring (Required) Name of form.
Changelog #
Source #
File: anspress-question-answer.php
public function &get_form( $name ) { $name = preg_replace( '/^form_/i', '', $name ); if ( $this->form_exists( $name ) ) { return $this->forms[ $name ]; } throw new \Exception( sprintf( // translators: %s contains name of the form requested. esc_html__( 'Requested form: %s is not registered .', 'anspress-question-answer' ), esc_html( $name ) ) ); }
Expand full source code Collapse full source code View on GitHub: anspress-question-answer.php:490
Add your comment