WordPress Visual Composer Encoder/Decoder
2022 · software
Built an internal encoder/decoder for WordPress Visual Composer shortcode strings. Visual Composer stores page layout data as nested shortcodes that are base64-encoded inside outer shortcodes, a format designed for the builder's internal use, not for programmatic manipulation. When you need to generate, migrate, or modify Visual Composer content at scale, you need to be able to work with that format directly.
The tool decodes the shortcode string into its structural representation, the actual layout elements, attributes, and nesting, makes manipulation possible, and re-encodes the result as a valid Visual Composer shortcode string. This turned content operations that would otherwise require clicking through a page builder UI into scriptable processes.
The immediate use case was content migration: moving structured page layouts between WordPress instances without rebuilding every page manually. The same tooling applies to any situation where you need to produce Visual Composer content programmatically: bulk page generation, template propagation, layout auditing. The tool is simple and specific, and that specificity is why it works.
What this proved: Every platform has a layer that looks like a user interface but is actually a data format. Understanding the format is what makes automation possible.