PageSourceSearch

https://fulltextsearch.org/docs/_next/static/chunks/pages/en/archi…_submitbox_misc_actions-1bc41561d48d64c6.js

js fulltextsearch.org collected 2026-09-25 21:07:46 UTC 3,527 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9476],{36319:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/en/architecture/hooks_usage/post_submitbox_misc_actions",function(){return n(74353)}])},74353:function(e,t,n){"use strict";n.r(t),n.d(t,{useTOC:function(){return useTOC}});var s=n(85893),i=n(37812),o=n(80390),d=n(38925);function useTOC(e){let t={code:"code",...(0,d.a)()};return[{value:(0,s.jsxs)(s.Fragment,{children:["The ",(0,s.jsx)(t.code,{children:"post_submitbox_misc_actions"})," Hook in WPFTS"]}),id:"the-post_submitbox_misc_actions-hook-in-wpfts",depth:2}]}t.default=(0,i.c)(function(e){let{toc:t=useTOC(e)}=e,n={code:"code",h2:"h2",li:"li",ol:"ol",p:"p",strong:"strong",ul:"ul",...(0,d.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h2,{id:t[0].id,children:t[0].value}),"\n",(0,s.jsxs)(n.p,{children:["The ",(0,s.jsx)(n.code,{children:"post_submitbox_misc_actions"})," hook is a standard WordPress hook that allows adding extra elements to the “Publish” meta box on the post editing page. WPFTS uses this hook to display information about the indexing status of the current post."]}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["What WPFTS does when ",(0,s.jsx)(n.code,{children:"post_submitbox_misc_actions"})," is called:"]})}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Retrieving the indexing status:"})," The plugin retrieves the indexing status of the current post using the ",(0,s.jsx)(n.code,{children:"WPFTS_Core::GetPostIndexStatus()"})," method."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Displaying the status:"})," WPFTS displays the indexing status as text next to a search icon. The status can be “Unknown”, “Not Indexed”, “Processing”, “Error”, or “Ok”."]}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["Important functions involved in handling ",(0,s.jsx)(n.code,{children:"post_submitbox_misc_actions"}),":"]})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"WPFTS_Core::GetPostIndexStatus()"})}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"How to use this in addon development:"})}),"\n",(0,s.jsx)(n.p,{children:"Addon developers can use this hook to add their own information to the “Publish” meta box. However, care should be taken not to overload the meta box with unnecessary information."}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Additional notes:"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"The indexing status is only displayed on the post editing page."}),"\n",(0,s.jsx)(n.li,{children:"The displayed status is dynamically updated using AJAX."}),"\n",(0,s.jsx)(n.li,{children:"The plugin code contains commented-out code for adding additional actions to the meta box, which may be used in future versions."}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"This hook provides developers with the ability to add their own information to the “Publish” meta box and integrate their functionality with WPFTS."})]})},"/en/architecture/hooks_usage/post_submitbox_misc_actions",{filePath:"pages/en/architecture/hooks_usage/post_submitbox_misc_actions.md",timestamp:1733329702e3,pageMap:o.v,frontMatter:{},title:"Post Submitbox Misc Actions"},"undefined"==typeof RemoteContent?useTOC:RemoteContent.useTOC)}},function(e){e.O(0,[9993,9774,2888,179],function(){return e(e.s=36319)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.