classes/fields/link.php
public function add_link_modal() {

		if ( ! class_exists( '_WP_Editors', false ) && file_exists( ABSPATH . WPINC . '/class-wp-editor.php' ) ) {
			require_once ABSPATH . WPINC . '/class-wp-editor.php';
		}

		if ( class_exists( '_WP_Editors' ) && method_exists( '_WP_Editors', 'wp_link_dialog' ) ) {
			_WP_Editors::wp_link_dialog();
		} else {
			echo '<div style="display:none;">';
			wp_editor( '', 'pods-link-editor-hidden' );
			echo '</div>';
		}

	}
public function add_link_modal() {

		if ( ! class_exists( '_WP_Editors', false ) && file_exists( ABSPATH . WPINC . '/class-wp-editor.php' ) ) {
			require_once ABSPATH . WPINC . '/class-wp-editor.php';
		}

		if ( class_exists( '_WP_Editors' ) && method_exists( '_WP_Editors', 'wp_link_dialog' ) ) {
			_WP_Editors::wp_link_dialog();
		} else {
			echo '<div style="display:none;">';
			wp_editor( '', 'pods-link-editor-hidden' );
			echo '</div>';
		}

	}
public function add_link_modal ( ) { if ( ! class_exists ( '_WP_Editors' , false ) && file_exists ( ABSPATH . WPINC . '/class-wp-editor.php' ) ) { require_once ABSPATH . WPINC . '/class-wp-editor.php' ; } if ( class_exists ( '_WP_Editors' ) && method_exists ( '_WP_Editors' , 'wp_link_dialog' ) ) { _WP_Editors :: wp_link_dialog ( ) ; } else { echo '<div style="display:none;">' ; wp_editor ( '' , 'pods-link-editor-hidden' ) ; echo '</div>' ; } }
Echo the link modal code
Echo the link modal code