Code Editor

Write HTML, CSS, JavaScript and PHP, turn snippets into Gutenberg blocks with fields, and decide where, when and for whom they run.

13 articles

  1. All Codes: Managing Snippets The snippet list — switch snippets on and off, filter by tag, pin, duplicate, export and run bulk actions.
  2. Editor Screen & Sidebar The snippet editor — tabs, the Save bar and every field of the sidebar: Active, Test mode, Shortcode, Tags, Link…
  3. HTML Code The HTML tab — Live Preview, Add Image, Minified output, NAV comments and editor shortcuts, plus Pro's QuickCode, Icons, PHP…
  4. CSS Code The CSS tab — file or inline output and minification, plus Pro's combined per-page files, media-query helpers and attribute variables.
  5. JS Code The JS tab — jQuery, inline or file output, minify or obfuscate, defer/async — and Pro's automatic jQuery and combined…
  6. PHP Code The PHP tab — where and when the code runs, attribute variables, helper functions, forbidden functions and error handling.
  7. Attributes & Block Fields Turn a snippet into a block with settings — 8 field types with image sub-variables, and in Pro 20 types…
  8. Conditions: Where, When and for Whom Display and Location decide whether and where a snippet is inserted automatically; in Pro, Display Rules and users, schedule, device,…
  9. Scripts & Styles Load external CSS and JS files with a snippet — and in Pro remove theme or plugin files on the…
  10. The WP Coder Snippet Block Place any snippet in the block editor, fill its fields in the sidebar and preview it — and in Pro…
  11. Page Templates PRO Replace the theme template with a snippet, add your own templates to the Template list, or use the WP Coder…
  12. Global PHP One site-wide PHP area — like functions.php, but it survives theme changes. When to use it instead of a snippet,…
  13. PHP Errors & Safe Mode How WP Coder catches PHP errors, switches broken snippets off automatically, and how to get back into a site with…