cache_key = 'frm_style_templates_l' . ( ! empty( $this->license ) ? md5( $this->license ) : '' ); } public function get_api_info() { return $this->fill_missing_style_settings( parent::get_api_info() ); } /** * @param array $api_info * * @return array */ private function fill_missing_style_settings( $api_info ) { // Remove 'Styling Template' from titles. foreach ( $api_info as $id => $template ) { if ( isset( $template['name'] ) ) { $api_info[ $id ]['name'] = preg_replace( '/(\sStyle|Styling)?(\sTemplate)?$/', '', $template['name'] ); } } return $api_info; } }