actions-meta.php
2 years ago
args-meta.php
2 years ago
base-meta-type.php
2 years ago
gateways-meta.php
2 years ago
messages-meta.php
2 years ago
preset-meta.php
2 years ago
recaptcha-meta.php
2 years ago
validation-meta.php
2 years ago
recaptcha-meta.php
36 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Post_Meta; |
| 5 | |
| 6 | // If this file is called directly, abort. |
| 7 | if ( ! defined( 'WPINC' ) ) { |
| 8 | die; |
| 9 | } |
| 10 | |
| 11 | class Recaptcha_Meta extends Base_Meta_Type { |
| 12 | |
| 13 | public function get_id(): string { |
| 14 | return '_jf_recaptcha'; |
| 15 | } |
| 16 | |
| 17 | public function get_type(): string { |
| 18 | return 'string'; |
| 19 | } |
| 20 | |
| 21 | public function get_default(): string { |
| 22 | return '{}'; |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * @param $form_id |
| 27 | * |
| 28 | * @return array |
| 29 | */ |
| 30 | public function query( $form_id ) { |
| 31 | $response = parent::query( $form_id ); |
| 32 | |
| 33 | return is_array( $response ) ? $response : array(); |
| 34 | } |
| 35 | } |
| 36 |