| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
|
| 6 |
class FrmFormTemplateApi extends FrmFormApi { |
| 7 |
|
| 8 |
/** |
| 9 |
* @since 3.06 |
| 10 |
*/ |
| 11 |
protected function set_cache_key() { |
| 12 |
$this->cache_key = 'frm_form_templates_l' . ( empty( $this->license ) ? '' : md5( $this->license ) ); |
| 13 |
} |
| 14 |
|
| 15 |
/** |
| 16 |
* @since 3.06 |
| 17 |
*/ |
| 18 |
protected function api_url() { |
| 19 |
return 'https://formidableforms.com/wp-json/form-templates/v1/list'; |
| 20 |
} |
| 21 |
|
| 22 |
/** |
| 23 |
* @since 3.06 |
| 24 |
*/ |
| 25 |
protected function skip_categories() { |
| 26 |
return array(); |
| 27 |
} |
| 28 |
} |
| 29 |
|