OptiPub synchronizes content from the OptiPub platform to your WordPress installation. Creates custom post types for Resources, Videos, FAQs and Authors with automated sync every 5 minutes via WP-Cron. Features: Custom post types (Resources, Videos, FAQs, Authors), automated content synchronization
PricingFree downloadThe WordPress.org download is free. Pro versions, add-ons or external services may cost extra.
CompatibilityRequires WordPress 5.0 and PHP 7.4.
SourceWordPress plugins · Oct 28, 2026
01 / Source details
Aboutthistool.
OptiPub synchronizes content from the OptiPub platform to your WordPress installation. Creates custom post types for Resources, Videos, FAQs and Authors with automated sync every 5 minutes via WP-Cron.
Features: Custom post types (Resources, Videos, FAQs, Authors), automated content synchronization via WP-Cron, secure API authentication with encrypted token storage, multiple publication support, widget integration with custom content, tag and category management, static and dynamic pages sync, redirect handling, theme template integration, and file copying utilities.
Source Code for Minified Files
This plugin includes one minified JavaScript file ( public/js/video.js ) which is a third-party library. The source code for this minified file is publicly available:
All other JavaScript and CSS files in this plugin ( public/js/archive-filters.js , public/js/gtm.js , public/js/init.js , public/js/login-forms.js , public/js/navigation-collapse.js , and public/css/subscribers.css ) are provided in their original, unminified source code format and are fully human-readable.
External services
This plugin connects to the following external services:
Google Tag Manager
Provides tag management and analytics functionality when GTM containers are configured in OptiPub. Sends the container ID to www.googletagmanager.com on every page load. Data collection is controlled by your GTM configuration.
Service Provider: Google LLC
Terms of Use: https://www.google.com/analytics/tag-manager/use-policy/
Embeds YouTube videos when video content is configured to use YouTube as the player. Sends video IDs to youtube.com/embed only when displaying YouTube video content. Data collection is controlled by YouTube’s privacy policy.
Service Provider: Google LLC (YouTube)
Terms of Use: https://www.youtube.com/static?template=terms
Embeds Wistia videos when video content is configured to use Wistia as the player. Sends video IDs to fast.wistia.net only when displaying Wistia video content. Data collection is controlled by Wistia’s privacy policy.
Service Provider: Wistia, Inc.
Terms of Use: https://wistia.com/terms
Privacy Policy: https://wistia.com/privacy
OptiPub API
Synchronizes content (publications, resources, videos, FAQs, authors, tags, categories, redirects) from the OptiPub platform to WordPress. Sends authenticated API requests with encrypted tokens to your configured OptiPub domain (typically https://<domain>.app.optipub.com ) via WP-Cron at configured intervals (default: every 5 minutes). Also creates edit links to OptiPub content management pages in WordPress admin.
Service Provider: OptiPub
Terms of Use & Privacy Policy: Please refer to your OptiPub service agreement for terms of use and privacy policy.
Third Party Libraries
This plugin includes one minified JavaScript library for video functionality:
Video.js v4.6.3 – Used for video player functionality Source Code Repository: https://github.com/videojs/video.js/tree/v4.6.3
License: Apache 2.0
Location in Plugin: public/js/video.js
Documentation: https://docs.videojs.com/
The source code for this minified library is publicly available at the GitHub repository link above. This plugin does not include any custom build process – the minified file is used directly from the Video.js project.
Development Documentation
Technical documentation for developers working with the OptiPub plugin. Topics covered:
OptiPub Introduction
Prepare
Installation
Activation
OptiPub Admin Page (Save Changes Button, Clear Data Button)
OptiPub syncs OptiPub Resources to a WordPress installation. The plugin schedules the WP-Cron event optipub_sync to sync Publications, Resources, Videos, FAQs, Authors, Pages, Custom Content, Tags, Categories and Redirects.
The plugin creates Custom Post Types (CPTs): Resources , Videos , FAQs and Authors . Resources synced to these post types store OptiPub metadata and properties in the wp_postmeta table. OptiPub Tags are saved as WordPress Tags. OptiPub Resource Categories are saved as WordPress Categories.
WordPress Widgets can be created with OptiPub Custom Content from the OptiPub Admin page.
Prepare
From WordPress Admin: Settings > General, select timezone (recommended: ‘New York’) and click [Save Changes].
OptiPub syncs with UTC but displays dates in EST. If you don’t select ‘New York’, website dates may differ from OptiPub dates. WordPress automatically converts post_date and post_modified to the selected timezone. Configure this before syncing data.
Bitnami permissions and configurations (Optional)
Note: This section is only required if you’re using Bitnami WordPress. Skip this if you’re using a standard WordPress installation.
This sets user/group to bitnami:daemon , file permissions to 664 (read/write for user/group, read for others), and folder permissions to 775 (read/write/execute for user/group, read/execute for others).
Activation
Activate from Plugins page. After activation, a green OptiPub Admin menu item appears in the left sidebar.
Activation Processes
During activation, three processes execute:
04Override WP_CRON_LOCK_TIMEOUT constant – Locates wp-config.php and overrides the constant. See WP_CRON_LOCK_TIMEOUT . Note: May fail in Bitnami if permissions aren’t set first.
05Generate OPTIPUB_KEY encryption key – Generates a random key stored in wp-config.php as OPTIPUB_KEY . Used to encrypt/decrypt the API token during cron job execution.
06Change permalink structure – Changes permalink structure to /%postname%/ to accommodate static pages with multiple slugs (e.g., https://www.energyandcapital.com/pubs-detailed/bab where pubs-detailed/bab is defined in /pages OptiPub API).
OptiPub Admin Page
The green menu icon opens the Admin Page for migrating data from the OptiPub API.
OptiPub Sync Options: 1. OptiPub Domain – HTTPS URL of the OptiPub API 2. API Token – The provided API Token from OptiPub will be used to authenticate with the API. Encrypted and stored in database, decrypted for API calls 3. Open Graph Image Link – Backup/default image URL. Access with: function get_optipub_opengraph_image() { return get_option(\OptiPub\Base\Constants::OPTIPUB_OPENGRAPH_IMAGE_LINK); } 4. WP Auth Token – Create a WP Auth Token to authenticate subscriber logins through OptiPub 5. Home Page Template – Template name from OptiPub: – OptiPub > Administration > Templates – create template with .php extension (e.g., optipub_home_page.php ) – OptiPub > Content > Pages – create page with path / using the template – Optional: OptiPub > Content > Redirects – create redirect from domain.com/home to https://www.domain.com/ 6. Publication Dropdown – Generated after OptiPub Domain and API Token are provided and Save changes is clicked 7. Publication Domain Id – Publication domain ID (integer) used to retrieve redirects
Copy Files To Theme (feature complete – documentation under construction) View more documentation in the plugin ‘OptiPub Admin’ page
07Files copied to [theme-directory]/inc/optipub
08Select file categories and click [Copy Files]
09Reference from current location or use as integration guide
If copying Helper Functions , copy content from [theme-directory]/inc/optipub/php/add_to_bottom_of_functions.php.txt to your theme’s functions.php . include statements and filter/action calls are commented out. Review functions before uncommenting.
Custom Content Widget Sidebars (feature complete – documentation under construction) View more documentation in the plugin ‘OptiPub Admin’ page
Create custom content macro in OptiPub > Content > Custom Content. Custom Content syncs to WordPress as options.
Click [Create New Widget]: – Title – WordPress Admin Console – Sidebar ID – Display widget in theme templates – File Name – WordPress Sidebar Widget content file – Description – WordPress Admin Console – Custom Content – OptiPub custom content macro name – Class Name – CSS class for styling – Before Widget – HTML before widget – After Widget – HTML after widget – Before Title – HTML before title (displays Title if used) – After Title – HTML after title (displays Title if used)
How OptiPub Custom Content creates WordPress Sidebar Widgets:
Widget files created at: [theme-directory]/inc/optipub/widget-templates/ File Name
Include in theme templates: if (is_active_sidebar('sidebar-id')) { dynamic_sidebar('sidebar-id'); }
Save Changes Button
Validates API Domain and token, then stores Optipub Domain , Api Token , Publication , Publication Domain , Header Pencil Ad Macro , Article bottom Ad Macro , Signup Sidebar Macro in wp_options table.
Schedules cron job to run every 5 minutes if Optipub Domain , Api Token , and Publication are provided correctly.
After saving, an API call fetches publication metadata. Fetched metadata appears in the WordPress admin left menu. New CPT links appear in green to differentiate from other CPTs.
01Upload the plugin files to /wp-content/plugins/optipub/
02Activate the plugin through the ‘Plugins’ screen in WordPress
03Navigate to ‘OptiPub Admin’ in the WordPress admin menu
04Configure your OptiPub domain and API token
05Select publications to sync and click ‘Save Changes’ Bundle the plugin:
06Run composer install
07Zip the plugin
Install via WordPress Admin: 1. Navigate to Plugins > Add New > Upload Plugin 2. Upload the zipped plugin file 3. Click Install Plugin (Note: May need to increase max file upload size in Bitnami) 4. Activate the plugin (Note: Set Bitnami permissions first if applicable) 5. Activate the associated custom theme before configuring (Note: Required for widget registration) 6. Configure from OptiPub Admin page
03 / Source details
Frequently asked questions.
What permissions do I need?
The plugin requires write permissions to your WordPress installation for creating custom post types and storing synced content.
How often does content sync?
By default, content syncs every 5 minutes. You can adjust this interval in the plugin constants.
Can I sync multiple publications?
Yes, you can select a primary publication and additional publications to sync simultaneously.
Is my API token secure?
Yes, API tokens are encrypted before storage and only decrypted when needed for API calls.
Can I customize the sync behavior?
Yes, the plugin provides extensive configuration options through constants and admin settings.
Website LLMs.txt and LLMs-Full.txt Generator is an LLMs.txt generator and llms-full.txt generator for WordPress. It helps site owners generate, manage, preview, validate, and serve AI discovery files from published public content. Use it to create structured /llms.txt and optional /llms-full.txt end
EngageDock AI is a customizable floating contact widget for WordPress websites that want more leads and faster visitor communication. It helps small businesses turn website traffic into calls, texts, emails, and callback requests from one clean contact panel. Key Features: Click-to-Call – One tap ca
Altify AI is an auto ALT text and AI ALT text plugin for WordPress images. It helps generate descriptive image ALT text for accessibility and image SEO. Use bulk image ALT text tools for your Media Library, generate featured image ALT text automatically, and scale WooCommerce image ALT updates with
The Accepted Payment Methods plugin is a straightforward, lightweight solution that enhances your website by displaying visually appealing icons of the payment methods you accept. This plugin is ideal for a variety of websites, including e-commerce platforms, service-oriented websites, and informati