{"id":247625,"date":"2025-09-11T01:57:55","date_gmt":"2025-09-11T01:57:55","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/static-page-publisher\/"},"modified":"2025-09-11T01:57:39","modified_gmt":"2025-09-11T01:57:39","slug":"static-page-publisher","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/static-page-publisher\/","author":23349329,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.0","stable_tag":"1.1.0","tested":"6.8.5","requires":"6.0","requires_php":"7.4","requires_plugins":null,"header_name":"Static Page Publisher","header_author":"HeartCoreDev","header_description":"Generate secure access tokens, update landing pages via REST API, and dynamically serve uploaded landing pages on your front page.","assets_banners_color":"","last_updated":"2025-09-11 01:57:39","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":225,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.1.0":{"tag":"1.1.0","author":"heartcoredev","date":"2025-09-11 01:57:39"}},"upgrade_notice":{"1.1.0":"<p>Front-page override is now always enabled. Tokens and ZIP upload endpoints remain unchanged.<\/p>"},"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.0"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Admin page to generate and display your access token and API URL."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[569,16271,1600,23853],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-247625","plugin","type-plugin","status-publish","hentry","plugin_tags-automation","plugin_tags-deployment","plugin_tags-landing-pages","plugin_tags-rest-api","plugin_committers-heartcoredev"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/static-page-publisher.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Static Page Publisher allows you to deploy static landing pages to your WordPress site automatically via REST API.<\/p>\n\n<p><strong>Features:<\/strong>\n* Generate a secure access token for API requests.\n* Upload and deploy a base64-encoded ZIP containing your landing page.\n* Front page is dynamically replaced with uploaded content.\n* Easily view and share your API base URL for integration.<\/p>\n\n<p><strong>REST API Endpoints:<\/strong>\n* <code>GET \/wp-json\/static-page-publisher\/v1\/verify-token<\/code> \u2014 Verify if a token is valid.\n* <code>POST \/wp-json\/static-page-publisher\/v1\/update-landing<\/code> \u2014 Upload and deploy a base64-encoded ZIP as the new landing page.<\/p>\n\n<p>Ideal for teams automating content deployment from Figma, design systems, or CI\/CD pipelines.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin folder to <code>\/wp-content\/plugins\/<\/code> or install via <strong>Plugins &gt; Add New<\/strong>.<\/li>\n<li>Activate the plugin through the <strong>Plugins<\/strong> menu in WordPress.<\/li>\n<li>Go to <strong>Static Page Publisher<\/strong> in the admin menu.<\/li>\n<li>Generate an access token and use it in your API requests as:\n\n<ul>\n<li>Header: <code>X-API-Token: yourtoken<\/code> or <code>Authorization: Bearer yourtoken<\/code><\/li>\n<li>Query param: <code>?token=yourtoken<\/code><\/li>\n<\/ul><\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20do%20i%20deploy%20a%20landing%20page%3F'><h3>How do I deploy a landing page?<\/h3><\/dt>\n<dd><p>Send a POST request with a JSON body containing a base64 ZIP (<code>zip_base64<\/code>) to <code>\/wp-json\/static-page-publisher\/v1\/update-landing<\/code> using your access token.<\/p><\/dd>\n<dt id='will%20this%20override%20my%20existing%20front%20page%3F'><h3>Will this override my existing front page?<\/h3><\/dt>\n<dd><p>Yes, the plugin automatically serves the uploaded landing page on your site\u2019s front page. The original theme files are not modified.<\/p><\/dd>\n<dt id='is%20my%20token%20secure%3F'><h3>Is my token secure?<\/h3><\/dt>\n<dd><p>Tokens are stored in the WordPress database and should be treated like API keys. Rotate tokens periodically.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Always serve uploaded landing page on front page.<\/li>\n<li>Removed toggle option for front-page override.<\/li>\n<li>Improved file type validation for uploaded ZIPs.<\/li>\n<\/ul>","raw_excerpt":"Deploy static landing pages via REST API and dynamically serve them on your front page.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/247625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=247625"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/heartcoredev"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=247625"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=247625"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=247625"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=247625"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=247625"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=247625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}