esc_url_raw( rest_url( 'ai/v1/connector-approvals' ) ), 'nonce' => wp_create_nonce( 'wp_rest' ), ) ); } /** * Renders the page container. * * The actual UI is rendered by the React app mounted into the container. * * @since 1.0.0 */ public function render(): void { if ( ! current_user_can( 'manage_options' ) ) { wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'ai' ) ); } echo '
'; echo '

' . esc_html__( 'Connector Approvals', 'ai' ) . '

'; echo '

' . esc_html__( 'Control which plugins and themes are allowed to use each AI connector on this site. Prompts from unapproved callers are prevented and listed below for review.', 'ai' ) . '

'; echo '
'; echo '
'; } }