[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-admin/ -> options-connectors.php (source)

   1  <?php
   2  /**
   3   * Connectors administration screen.
   4   *
   5   * @package WordPress
   6   * @subpackage Administration
   7   * @since 7.0.0
   8   */
   9  
  10  /** WordPress Administration Bootstrap */
  11  require_once  __DIR__ . '/admin.php';
  12  
  13  if ( ! current_user_can( 'manage_options' ) ) {
  14      wp_die(
  15          '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' .
  16          '<p>' . __( 'Sorry, you are not allowed to manage connectors on this site.' ) . '</p>',
  17          403
  18      );
  19  }
  20  
  21  if ( ! class_exists( '\WordPress\AiClient\AiClient' ) || ! function_exists( 'wp_options_connectors_wp_admin_render_page' ) ) {
  22      wp_die(
  23          '<h1>' . __( 'Connectors are not available.' ) . '</h1>' .
  24          '<p>' . __( 'The Connectors page requires build files. Please run <code>npm install</code> to build the necessary files.' ) . '</p>',
  25          503
  26      );
  27  }
  28  
  29  // Set the page title.
  30  $title = __( 'Connectors' );
  31  
  32  // Set parent file for menu highlighting.
  33  $parent_file = 'options-general.php';
  34  
  35  require_once  ABSPATH . 'wp-admin/admin-header.php';
  36  
  37  // Render the Connectors page.
  38  wp_options_connectors_wp_admin_render_page();
  39  
  40  require_once  ABSPATH . 'wp-admin/admin-footer.php';


Generated : Wed May 6 08:20:15 2026 Cross-referenced by PHPXref