Thorsten Frommen
  • Music
  • Personal
  • Software Development
  • Now
  • Open Source Contributions
  • Talks

Tag: Data

Passing Data from PHP to JavaScript

Software Development
August 8, 2022
Add Comment

When passing data between PHP and JavaScript in WordPress, two methods can help. Use wp_add_inline_script to easily pass any data and perform dynamic code logic. Then, access the data from a single file to limit global variable access and allow easy inline documentation.

WP-CLI Command to Manage Orphan Data and Metadata

Software Development
January 11, 2021
Add Comment

Last week, when I was in between projects, I decided to take one day and draft up a WP-CLI command that allows for listing and deleting orphan WordPress entities, as well as metadata. I had the idea for this quite a while ago, and I tried to get it into WP-CLI. That failed, however, as […]

Using HTML5 Data Attributes

Software Development
December 24, 2016
Add Comment

HTML5 introduced custom data attributes. In this post, I discuss how to efficiently work with data attributes in both JavaScript as well as PHP context.

Recent Posts

  • My Most Elaborate Code Comment Ever
  • Bulk-Move Named Files Into Folders
  • Things I Learned While Replacing a GitHub App with GitHub Actions Workflows

Recent Comments

  1. Neil Robertson on How to Detect Joomla Websites
  2. Nathan on Quickly Display All Diffs in a GitHub PR
  3. Emmanuel Uzodinma on JavaScript 30 – Day 1: JavaScript Drum Kit

Categories

  • Music
  • Personal
  • Software Development

Pages

  • Now
  • Open Source Contributions
  • Talks
Copyright © 2025 Thorsten FrommenSoftware Development, Music and More.
  • Legal Disclosure
  • Privacy Policy