Advertisement
verygoodplugins

Untitled

Nov 16th, 2019
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.64 KB | None | 0 0
  1.     $settings = array( 'connection_configured' => false );
  2.  
  3.     $crms = wp_fusion()->get_crms();
  4.  
  5.     foreach ( $crms as $path => $class ) {
  6.  
  7.         require_once WPF_DIR_PATH . 'includes/crms/' . $path . '/class-' . $path . '.php';
  8.  
  9.         require_once WPF_DIR_PATH . 'includes/crms/' . $path . '/admin/class-admin.php';
  10.  
  11.         $crm_main = new $class();
  12.  
  13.         $admin_class_name = $class . '_Admin';
  14.  
  15.         $crm_admin = new $admin_class_name( $crm_main->slug, $crm_main->name, $crm_main );
  16.  
  17.         $connection_settings = $crm_admin->register_connection_settings( array(), array() );
  18.  
  19.         $settings = array_merge( $settings, $connection_settings );
  20.  
  21.     }
  22.  
  23.     var_dump($settings);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement