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

  • Bulk-Move Named Files Into Folders
  • Things I Learned While Replacing a GitHub App with GitHub Actions Workflows
  • Passing Data from PHP to JavaScript

Recent Comments

  1. Thorsten Frommen on Things I Learned While Replacing a GitHub App with GitHub Actions Workflows
  2. Jeremy Schneider on Things I Learned While Replacing a GitHub App with GitHub Actions Workflows
  3. Jeremy Schneider on Things I Learned While Replacing a GitHub App with GitHub Actions Workflows

Categories

  • Music
  • Personal
  • Software Development

Pages

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