{"id":46378,"date":"2025-07-22T13:31:31","date_gmt":"2025-07-22T13:31:31","guid":{"rendered":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/?p=46378"},"modified":"2026-10-10T20:02:59","modified_gmt":"2026-10-10T20:02:59","slug":"dev-notes","status":"publish","type":"post","link":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/dev-notes\/","title":{"rendered":"Developer Notes Page in the WordPress Admin"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Every WordPress site collects knowledge that lives nowhere: which plugin needs a licence key, why a template was overridden, the steps for the next deploy. This snippet adds a private <strong>Dev Notes<\/strong> page to the WordPress admin under <strong>Tools<\/strong>, only for administrators, so those notes stay with the site they belong to.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is a small rich text editor: headings, bold, lists, tables and images from the media library, autosave three seconds after you stop typing, <strong>Ctrl+S<\/strong> or <strong>\u2318+S<\/strong> to save right away, and a read-only HTML view with syntax highlighting.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The snippet<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">&lt;?php\n\/**\n * Dev Notes: a private notes page for administrators under Tools \u2192 Dev Notes.\n * Rich text with tables and images, autosave, Ctrl\/Cmd+S, and a read-only HTML view.\n *\/\n\nconst DPC_DEV_NOTES_OPTION = 'dpc_dev_notes';\n\n\/** Saved notes. Falls back to the option of the older version of this snippet. *\/\nfunction dpc_dev_notes_get(): string {\n\treturn (string) get_option( DPC_DEV_NOTES_OPTION, get_option( 'devnotes_data', '' ) );\n}\n\nadd_action( 'admin_menu', 'dpc_dev_notes_menu' );\n\nfunction dpc_dev_notes_menu(): void {\n\tadd_management_page(\n\t\t__( 'Dev Notes', 'dpc' ),\n\t\t__( 'Dev Notes', 'dpc' ),\n\t\t'manage_options',\n\t\t'dpc-dev-notes',\n\t\t'dpc_dev_notes_page'\n\t);\n}\n\nadd_action( 'admin_enqueue_scripts', 'dpc_dev_notes_assets' );\n\nfunction dpc_dev_notes_assets( $hook_suffix ): void {\n\tif ( 'tools_page_dpc-dev-notes' !== $hook_suffix ) {\n\t\treturn;\n\t}\n\n\twp_enqueue_media();\n\t$code_editor = wp_enqueue_code_editor( array( 'type' =&gt; 'text\/html' ) );\n\n\twp_register_script( 'dpc-dev-notes', false, array( 'media-editor' ), '1.0', true );\n\twp_enqueue_script( 'dpc-dev-notes' );\n\twp_add_inline_script(\n\t\t'dpc-dev-notes',\n\t\t'window.dpcDevNotes = ' . wp_json_encode(\n\t\t\tarray(\n\t\t\t\t'ajaxUrl'    =&gt; admin_url( 'admin-ajax.php' ),\n\t\t\t\t'nonce'      =&gt; wp_create_nonce( 'dpc_dev_notes_save' ),\n\t\t\t\t'codeEditor' =&gt; $code_editor,\n\t\t\t\t'i18n'       =&gt; array(\n\t\t\t\t\t'saving'  =&gt; __( 'Saving\u2026', 'dpc' ),\n\t\t\t\t\t'saved'   =&gt; __( 'Saved', 'dpc' ),\n\t\t\t\t\t'failed'  =&gt; __( 'Save failed:', 'dpc' ),\n\t\t\t\t\t'rows'    =&gt; __( 'Number of rows:', 'dpc' ),\n\t\t\t\t\t'cols'    =&gt; __( 'Number of columns:', 'dpc' ),\n\t\t\t\t\t'image'   =&gt; __( 'Choose image', 'dpc' ),\n\t\t\t\t\t'raw'     =&gt; __( '&lt;\/&gt; Raw', 'dpc' ),\n\t\t\t\t\t'visual'  =&gt; __( 'Visual', 'dpc' ),\n\t\t\t\t\t'leave'   =&gt; __( 'You have unsaved notes.', 'dpc' ),\n\t\t\t\t),\n\t\t\t)\n\t\t) . ';',\n\t\t'before'\n\t);\n\twp_add_inline_script( 'dpc-dev-notes', dpc_dev_notes_js() );\n\n\twp_register_style( 'dpc-dev-notes', false, array(), '1.0' );\n\twp_enqueue_style( 'dpc-dev-notes' );\n\twp_add_inline_style( 'dpc-dev-notes', dpc_dev_notes_css() );\n}\n\nfunction dpc_dev_notes_page(): void {\n\tif ( ! current_user_can( 'manage_options' ) ) {\n\t\twp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'dpc' ) );\n\t}\n\n\t$buttons = array(\n\t\tarray( 'bold', '', '&lt;strong&gt;B&lt;\/strong&gt;', __( 'Bold', 'dpc' ) ),\n\t\tarray( 'italic', '', '&lt;em&gt;I&lt;\/em&gt;', __( 'Italic', 'dpc' ) ),\n\t\tarray( 'underline', '', '&lt;u&gt;U&lt;\/u&gt;', __( 'Underline', 'dpc' ) ),\n\t\tarray( 'insertUnorderedList', '', '&amp;bull; List', __( 'Bullet list', 'dpc' ) ),\n\t\tarray( 'insertOrderedList', '', '1. List', __( 'Numbered list', 'dpc' ) ),\n\t\tarray( 'formatBlock', 'h2', 'H2', __( 'Heading 2', 'dpc' ) ),\n\t\tarray( 'formatBlock', 'h3', 'H3', __( 'Heading 3', 'dpc' ) ),\n\t\tarray( 'formatBlock', 'p', 'P', __( 'Paragraph', 'dpc' ) ),\n\t);\n\t?&gt;\n\t&lt;div class=\"wrap dpc-dev-notes\"&gt;\n\t\t&lt;div class=\"dpc-dev-notes__head\"&gt;\n\t\t\t&lt;h1&gt;&lt;?php esc_html_e( 'Dev Notes', 'dpc' ); ?&gt;&lt;\/h1&gt;\n\t\t\t&lt;span id=\"dpc-dev-notes-status\" class=\"dpc-dev-notes__status\" role=\"status\"&gt;&lt;\/span&gt;\n\t\t\t&lt;button type=\"button\" id=\"dpc-dev-notes-save\" class=\"button button-primary\" disabled&gt;&lt;?php esc_html_e( 'Save notes', 'dpc' ); ?&gt;&lt;\/button&gt;\n\t\t&lt;\/div&gt;\n\t\t&lt;div class=\"dpc-dev-notes__toolbar\" role=\"toolbar\"&gt;\n\t\t\t&lt;?php foreach ( $buttons as $b ) : ?&gt;\n\t\t\t\t&lt;button type=\"button\" class=\"button dpc-dev-notes__cmd\" data-command=\"&lt;?php echo esc_attr( $b&#91;0&#93; ); ?&gt;\" data-value=\"&lt;?php echo esc_attr( $b&#91;1&#93; ); ?&gt;\" title=\"&lt;?php echo esc_attr( $b&#91;3&#93; ); ?&gt;\"&gt;&lt;?php echo wp_kses_post( $b&#91;2&#93; ); ?&gt;&lt;\/button&gt;\n\t\t\t&lt;?php endforeach; ?&gt;\n\t\t\t&lt;button type=\"button\" class=\"button dpc-dev-notes__cmd\" id=\"dpc-dev-notes-table\"&gt;&lt;?php esc_html_e( 'Table', 'dpc' ); ?&gt;&lt;\/button&gt;\n\t\t\t&lt;button type=\"button\" class=\"button dpc-dev-notes__cmd\" id=\"dpc-dev-notes-image\"&gt;&lt;?php esc_html_e( 'Image', 'dpc' ); ?&gt;&lt;\/button&gt;\n\t\t\t&lt;button type=\"button\" class=\"button\" id=\"dpc-dev-notes-toggle\"&gt;&lt;?php esc_html_e( '&lt;\/&gt; Raw', 'dpc' ); ?&gt;&lt;\/button&gt;\n\t\t&lt;\/div&gt;\n\t\t&lt;div id=\"dpc-dev-notes-editor\" class=\"dpc-dev-notes__editor\" contenteditable=\"true\"&gt;&lt;?php echo wp_kses_post( dpc_dev_notes_get() ); ?&gt;&lt;\/div&gt;\n\t\t&lt;div id=\"dpc-dev-notes-raw\" class=\"dpc-dev-notes__raw\" hidden&gt;\n\t\t\t&lt;textarea id=\"dpc-dev-notes-code\" readonly&gt;&lt;\/textarea&gt;\n\t\t&lt;\/div&gt;\n\t&lt;\/div&gt;\n\t&lt;?php\n}\n\nadd_action( 'wp_ajax_dpc_dev_notes_save', 'dpc_dev_notes_ajax_save' );\n\nfunction dpc_dev_notes_ajax_save(): void {\n\tif ( ! check_ajax_referer( 'dpc_dev_notes_save', 'nonce', false ) || ! current_user_can( 'manage_options' ) ) {\n\t\twp_send_json_error( __( 'Permission denied.', 'dpc' ), 403 );\n\t}\n\tif ( ! isset( $_POST&#91;'content'&#93; ) ) {\n\t\twp_send_json_error( __( 'No content.', 'dpc' ), 400 );\n\t}\n\n\t\/\/ Same HTML that is allowed in post content: no scripts, no event handlers.\n\t$content = wp_kses_post( wp_unslash( (string) $_POST&#91;'content'&#93; ) );\n\tupdate_option( DPC_DEV_NOTES_OPTION, $content, false );\n\n\twp_send_json_success( array( 'content' =&gt; $content ) );\n}\n\nfunction dpc_dev_notes_css(): string {\n\treturn '.dpc-dev-notes__head{display:flex;align-items:center;gap:12px;margin-bottom:12px}'\n\t\t. '.dpc-dev-notes__head h1{margin-right:auto}'\n\t\t. '.dpc-dev-notes__status.is-error{color:#d63638}'\n\t\t. '.dpc-dev-notes__toolbar{display:flex;flex-wrap:wrap;gap:4px;padding:8px;background:#f6f7f7;border:1px solid #c3c4c7;border-bottom:0}'\n\t\t. '.dpc-dev-notes__toolbar .button.is-active{background:#2271b1;border-color:#2271b1;color:#fff}'\n\t\t. '.dpc-dev-notes__editor,.dpc-dev-notes__raw .CodeMirror,#dpc-dev-notes-code{min-height:400px;border:1px solid #c3c4c7;background:#fff}'\n\t\t. '.dpc-dev-notes__editor{padding:20px;font-size:14px;line-height:1.6;overflow:auto}'\n\t\t. '.dpc-dev-notes__editor:focus{outline:2px solid #2271b1;outline-offset:-2px}'\n\t\t. '.dpc-dev-notes__editor ul{list-style:disc}.dpc-dev-notes__editor ul,.dpc-dev-notes__editor ol{padding-left:2em}'\n\t\t. '.dpc-dev-notes__editor table{border-collapse:collapse;width:100%;margin:1em 0}'\n\t\t. '.dpc-dev-notes__editor td,.dpc-dev-notes__editor th{border:1px solid #c3c4c7;padding:6px 10px;text-align:left}'\n\t\t. '.dpc-dev-notes__editor th{background:#f6f7f7}'\n\t\t. '.dpc-dev-notes__editor img{max-width:100%;height:auto}'\n\t\t. '#dpc-dev-notes-code{width:100%;font-family:Menlo,Consolas,monospace}';\n}\n\nfunction dpc_dev_notes_js(): string {\n\treturn &lt;&lt;&lt;'JS'\n(function () {\n\tvar cfg = window.dpcDevNotes;\n\tvar editor = document.getElementById('dpc-dev-notes-editor');\n\tif (!cfg || !editor) {\n\t\treturn;\n\t}\n\tvar raw = document.getElementById('dpc-dev-notes-raw');\n\tvar code = document.getElementById('dpc-dev-notes-code');\n\tvar toggle = document.getElementById('dpc-dev-notes-toggle');\n\tvar saveButton = document.getElementById('dpc-dev-notes-save');\n\tvar statusEl = document.getElementById('dpc-dev-notes-status');\n\tvar dirty = false;\n\tvar timer = 0;\n\tvar mirror = null;\n\n\tfunction setStatus(text, isError) {\n\t\tstatusEl.textContent = text;\n\t\tstatusEl.classList.toggle('is-error', !!isError);\n\t}\n\n\tfunction changed() {\n\t\tdirty = true;\n\t\tsaveButton.disabled = false;\n\t\tclearTimeout(timer);\n\t\ttimer = setTimeout(save, 3000);\n\t}\n\n\tfunction save() {\n\t\tclearTimeout(timer);\n\t\tif (!dirty) {\n\t\t\treturn;\n\t\t}\n\t\tdirty = false;\n\t\tsaveButton.disabled = true;\n\t\tsetStatus(cfg.i18n.saving);\n\t\tvar body = new FormData();\n\t\tbody.append('action', 'dpc_dev_notes_save');\n\t\tbody.append('nonce', cfg.nonce);\n\t\tbody.append('content', editor.innerHTML);\n\t\tfetch(cfg.ajaxUrl, { method: 'POST', body: body, credentials: 'same-origin' })\n\t\t\t.then(function (response) { return response.json(); })\n\t\t\t.then(function (result) {\n\t\t\t\tif (!result.success) {\n\t\t\t\t\tthrow new Error(result.data || 'error');\n\t\t\t\t}\n\t\t\t\tsetStatus(cfg.i18n.saved);\n\t\t\t})\n\t\t\t.catch(function (error) {\n\t\t\t\tdirty = true;\n\t\t\t\tsaveButton.disabled = false;\n\t\t\t\tsetStatus(cfg.i18n.failed + ' ' + error.message, true);\n\t\t\t});\n\t}\n\n\tfunction insert(html) {\n\t\teditor.focus();\n\t\tdocument.execCommand('insertHTML', false, html);\n\t\tchanged();\n\t}\n\n\tdocument.querySelectorAll('.dpc-dev-notes__cmd&#91;data-command&#93;').forEach(function (button) {\n\t\tbutton.addEventListener('click', function () {\n\t\t\teditor.focus();\n\t\t\tdocument.execCommand(button.dataset.command, false, button.dataset.value || null);\n\t\t\tchanged();\n\t\t});\n\t});\n\n\tdocument.getElementById('dpc-dev-notes-table').addEventListener('click', function () {\n\t\tvar rows = Math.min(50, Math.max(1, parseInt(window.prompt(cfg.i18n.rows, '3'), 10) || 0));\n\t\tvar cols = Math.min(20, Math.max(1, parseInt(window.prompt(cfg.i18n.cols, '3'), 10) || 0));\n\t\tvar html = '&lt;table&gt;&lt;tr&gt;' + '&lt;th&gt;&amp;nbsp;&lt;\/th&gt;'.repeat(cols) + '&lt;\/tr&gt;';\n\t\tfor (var r = 1; r &lt; rows; r++) {\n\t\t\thtml += '&lt;tr&gt;' + '&lt;td&gt;&amp;nbsp;&lt;\/td&gt;'.repeat(cols) + '&lt;\/tr&gt;';\n\t\t}\n\t\tinsert(html + '&lt;\/table&gt;&lt;p&gt;&lt;br&gt;&lt;\/p&gt;');\n\t});\n\n\tdocument.getElementById('dpc-dev-notes-image').addEventListener('click', function () {\n\t\tif (!window.wp || !wp.media) {\n\t\t\treturn;\n\t\t}\n\t\tvar frame = wp.media({ title: cfg.i18n.image, multiple: false, library: { type: 'image' } });\n\t\tframe.on('select', function () {\n\t\t\tvar file = frame.state().get('selection').first().toJSON();\n\t\t\tvar img = document.createElement('img');\n\t\t\timg.src = file.url;\n\t\t\timg.alt = file.alt || '';\n\t\t\tinsert(img.outerHTML + '&lt;p&gt;&lt;br&gt;&lt;\/p&gt;');\n\t\t});\n\t\tframe.open();\n\t});\n\n\ttoggle.addEventListener('click', function () {\n\t\tvar showRaw = raw.hidden;\n\t\traw.hidden = !showRaw;\n\t\teditor.hidden = showRaw;\n\t\ttoggle.classList.toggle('is-active', showRaw);\n\t\ttoggle.textContent = showRaw ? cfg.i18n.visual : cfg.i18n.raw;\n\t\tdocument.querySelectorAll('.dpc-dev-notes__cmd').forEach(function (button) {\n\t\t\tbutton.disabled = showRaw;\n\t\t});\n\t\tif (!showRaw) {\n\t\t\teditor.focus();\n\t\t\treturn;\n\t\t}\n\t\tvar html = editor.innerHTML.replace(\/&gt;\\s*&lt;\/g, '&gt;\\n&lt;');\n\t\tif (mirror) {\n\t\t\tmirror.codemirror.setValue(html);\n\t\t\tmirror.codemirror.refresh();\n\t\t} else if (cfg.codeEditor &amp;&amp; wp.codeEditor) {\n\t\t\tcode.value = html;\n\t\t\tvar settings = Object.assign({}, cfg.codeEditor);\n\t\t\tsettings.codemirror = Object.assign({}, cfg.codeEditor.codemirror, { readOnly: true, lineWrapping: true });\n\t\t\tmirror = wp.codeEditor.initialize(code, settings);\n\t\t} else {\n\t\t\tcode.value = html;\n\t\t}\n\t});\n\n\teditor.addEventListener('input', changed);\n\teditor.addEventListener('keydown', function (event) {\n\t\tif (event.key === 'Tab') {\n\t\t\tevent.preventDefault();\n\t\t\tdocument.execCommand('insertText', false, '    ');\n\t\t}\n\t});\n\tsaveButton.addEventListener('click', save);\n\tdocument.addEventListener('keydown', function (event) {\n\t\tif ((event.ctrlKey || event.metaKey) &amp;&amp; event.key.toLowerCase() === 's') {\n\t\t\tevent.preventDefault();\n\t\t\tsave();\n\t\t}\n\t});\n\twindow.addEventListener('beforeunload', function (event) {\n\t\tif (dirty) {\n\t\t\tevent.preventDefault();\n\t\t\tevent.returnValue = cfg.i18n.leave;\n\t\t}\n\t});\n})();\nJS;\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">How it works<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>add_management_page()<\/code> adds <strong>Tools \u2192 Dev Notes<\/strong> with the <code>manage_options<\/code> capability, so only administrators see it. The page checks the capability again before it renders.<\/li>\n\n\n<li>The CSS and JavaScript are attached to their own handles with <code>wp_add_inline_style()<\/code> and <code>wp_add_inline_script()<\/code>, and only on this one admin screen. <code>wp_enqueue_media()<\/code> loads the media library, and <code>wp_enqueue_code_editor()<\/code> WordPress&#8217;s CodeMirror for the HTML view.<\/li>\n\n\n<li>Saving goes through <code>admin-ajax.php<\/code>. The handler checks a nonce and the capability, cleans the HTML with <code>wp_kses_post()<\/code> and stores it in the <code>dpc_dev_notes<\/code> option with autoload off, so it is not loaded on every request.<\/li>\n\n\n<li>The page prints the notes through <code>wp_kses_post()<\/code> as well. Pasted <code>&lt;script&gt;<\/code> tags or <code>onerror<\/code> attributes never reach the browser.<\/li>\n\n\n<li>If you used the older version, its notes in <code>devnotes_data<\/code> show up until the first save.<\/li>\n\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The older version printed the saved HTML unfiltered, attached its settings to the <code>jquery<\/code> handle, kept the whole page in one PHP template with inline <code>&lt;script&gt;<\/code> and <code>&lt;style&gt;<\/code>, and had a second save handler for a form that did not exist.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Add it with Scripts Organizer<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In <a href=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/dplugins.com\/downloads\/scripts-organizer\/\">Scripts Organizer<\/a> go to <strong>Code Blocks \u2192 Add New<\/strong> and give the block a name. Set <strong>Trigger location<\/strong> to <strong>Everywhere<\/strong>, tick <strong>PHP<\/strong> under <strong>Script location<\/strong>, paste the code into the PHP editor and publish. Leave <strong>Action\/Hook<\/strong> empty.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Saving runs through <code>admin-ajax.php<\/code>, and <strong>Everywhere<\/strong> makes sure the save handler is registered for that request. The CSS and JavaScript live inside the PHP and are printed only on the Dev Notes screen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The same code also works unchanged in a small plugin or an mu-plugin.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Customise it<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Other location: replace <code>add_management_page()<\/code> with <code>add_menu_page()<\/code> to give Dev Notes its own top-level menu item.<\/li>\n\n\n<li>Let editors read and write notes: change <code>manage_options<\/code> to <code>edit_others_posts<\/code> in the three places it appears.<\/li>\n\n\n<li>Show the notes on the Dashboard as well: add a widget with <code>wp_add_dashboard_widget()<\/code> that prints <code>wp_kses_post( dpc_dev_notes_get() )<\/code>.<\/li>\n\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Gotchas<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The formatting buttons use <code>document.execCommand()<\/code>. Browsers mark it as deprecated but still support it, and there is no replacement for contenteditable editing yet.<\/li>\n\n\n<li>The notes are stored in the database. They are part of every database export, so do not keep passwords or API keys there.<\/li>\n\n\n<li>On multisite each site has its own notes.<\/li>\n\n<\/ul>\n\n","protected":false},"excerpt":{"rendered":"<p>Add a private Dev Notes page to the WordPress admin for administrators: rich text, tables, images, autosave and an HTML view, no plugin.<\/p>\n","protected":false},"author":1,"featured_media":46766,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Developer Notes Page in the WordPress Admin - Code DPlugins","description":"Add a private Dev Notes page to the WordPress admin for administrators: rich text, tables, images, autosave and an HTML view, no plugin."},"_slim_seo_primary_term_category":0,"_slim_seo_primary_term_post_tag":0,"footnotes":""},"categories":[3],"tags":[],"dpc_library":[204],"class_list":["post-46378","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/posts\/46378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/comments?post=46378"}],"version-history":[{"count":1,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/posts\/46378\/revisions"}],"predecessor-version":[{"id":46765,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/posts\/46378\/revisions\/46765"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/media\/46766"}],"wp:attachment":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/media?parent=46378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/categories?post=46378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/tags?post=46378"},{"taxonomy":"dpc_library","embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/dpc_library?post=46378"}],"curies":[{"name":"wp","href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/api.w.org\/{rel}","templated":true}]}}