{"id":6172,"date":"2026-02-13T18:34:52","date_gmt":"2026-02-13T23:34:52","guid":{"rendered":"https:\/\/chubes.net\/?documentation=admin"},"modified":"2026-02-27T23:09:44","modified_gmt":"2026-02-28T04:09:44","slug":"admin","status":"publish","type":"documentation","link":"https:\/\/chubes.net\/docs\/spawn\/inc\/admin\/","title":{"rendered":"Admin"},"content":{"rendered":"<h2 class=\"wp-block-heading\">Overview<\/h2><p>Adds the Spawn admin menu, renders settings and customer list, and registers plugin options.<\/p><h2 class=\"wp-block-heading\">Settings<\/h2><p>Registered options:<\/p><ul class=\"wp-block-list\"><li><code>spawn_stripe_price_starter<\/code><\/li><li><code>spawn_stripe_price_pro<\/code><\/li><li><code>spawn_stripe_price_business<\/code><\/li><li><code>spawn_namecom_username<\/code><\/li><li><code>spawn_namecom_token<\/code><\/li><li><code>spawn_sweatpants_url<\/code><\/li><li><code>spawn_sweatpants_token<\/code><\/li><li><code>spawn_opencode_server_url<\/code><\/li><li><code>spawn_opencode_password<\/code><\/li><li><code>spawn_google_client_id<\/code><\/li><li><code>spawn_google_client_secret<\/code><\/li><\/ul><h2 class=\"wp-block-heading\">Methods<\/h2><ul class=\"wp-block-list\"><li><code>init(): void<\/code> registers menus and settings.<\/li><li><code>add_menu(): void<\/code> adds Spawn admin menus.<\/li><li><code>register_settings(): void<\/code> registers settings sections and fields.<\/li><li><code>render_settings_page(): void<\/code> renders settings UI.<\/li><li><code>render_customers_page(): void<\/code> renders customer list.<\/li><\/ul><h2 class=\"wp-block-heading\">Example<\/h2><div class=\"code-block-wrapper\"><div class=\"code-block-header\"><span class=\"code-block-language\">php<\/span><button class=\"code-copy-btn\" aria-label=\"Copy code\"><svg><use href=\"https:\/\/chubes.net\/wp-content\/themes\/chubes\/assets\/icons\/chubes.svg#icon-copy\"><\/use><\/svg><\/button><\/div><pre data-chubes-enhanced class=\"wp-block-code language-php\"><code class=\"language-php\">add_action( &#039;admin_menu&#039;, [ SpawnAdmin::class, &#039;add_menu&#039; ] );<\/code><\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>Overview Adds the Spawn admin menu, renders settings and customer list, and registers plugin options. Settings Registered options: spawn_stripe_price_starter spawn_stripe_price_pro spawn_stripe_price_business spawn_namecom_username spawn_namecom_token spawn_sweatpants_url spawn_sweatpants_token spawn_opencode_server_url spawn_opencode_password spawn_google_client_id spawn_google_client_secret Methods&#8230;<\/p>\n","protected":false},"featured_media":0,"template":"","meta":{"footnotes":""},"tags":[],"project":[772],"project_type":[485],"class_list":["post-6172","documentation","type-documentation","status-publish","hentry","project-inc","project_type-tools"],"project_info":{"id":765,"name":"Spawn","slug":"spawn"},"project_type_info":{"id":484,"name":"WordPress Plugins","slug":"wordpress-plugins"},"_links":{"self":[{"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/documentation\/6172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/documentation"}],"about":[{"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/types\/documentation"}],"version-history":[{"count":4,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/documentation\/6172\/revisions"}],"predecessor-version":[{"id":9884,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/documentation\/6172\/revisions\/9884"}],"wp:attachment":[{"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/media?parent=6172"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/tags?post=6172"},{"taxonomy":"project","embeddable":true,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/project?post=6172"},{"taxonomy":"project_type","embeddable":true,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/project_type?post=6172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}