Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $settings = array( 'connection_configured' => false );
- $crms = wp_fusion()->get_crms();
- foreach ( $crms as $path => $class ) {
- require_once WPF_DIR_PATH . 'includes/crms/' . $path . '/class-' . $path . '.php';
- require_once WPF_DIR_PATH . 'includes/crms/' . $path . '/admin/class-admin.php';
- $crm_main = new $class();
- $admin_class_name = $class . '_Admin';
- $crm_admin = new $admin_class_name( $crm_main->slug, $crm_main->name, $crm_main );
- $connection_settings = $crm_admin->register_connection_settings( array(), array() );
- $settings = array_merge( $settings, $connection_settings );
- }
- var_dump($settings);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement