source_active = is_plugin_active( $this->path ); if ( ! $this->source_active ) { // if source plugin is not installed, do nothing return; } $this->maybe_add_to_import_page(); $this->response = array( 'upgrade_omit' => array(), 'unsupported' => array(), ); } private function maybe_add_to_import_page() { add_action( 'frm_import_settings', array( $this, 'import_page' ) ); add_action( 'wp_ajax_frm_import_' . $this->slug, array( $this, 'import_forms' ) ); } public function import_page() { ?>
Import forms and settings automatically from name ); ?>.
Select the forms to import.
Importing 1 of 0 forms from name ); ?>.
The import process has finished! We have successfully imported forms. You can review the results below.