Skip to content

Megabyte

Community Champion & Project Manager

  • About Me
  • Open Source
  • Certifications

If you appreciate my WordPress open source project contributions, please consider donating to my book fund.

If you have web dev work you need help with, check out my services.

If you are a web dev or agency and need PM/sales work, reach out here!

🍉

Category: Tech

Why is my shortcode content showing before other content?

Shortcode Showing Before Other Content
Posted October 3, 2018October 20, 2024

If you have created a shortcode but it’s showing up before the other content on your WordPress site, it might be because you used an “” instead of a “” in your callback function. add_shortcode() Incorrect: Correct:

Category: Web DevelopmentTags: Functions Shortcodes WordPress

Breaking vs Non-Breaking Plugin Changes

Posted August 13, 2018October 20, 2024

If you’re anything like me, when you open up old files, you like to clean them up while working in them. It only adds a small amount of time to your work and is the most convenient time to “get around” to cleaning things up. There are some things we […]

Category: Web DevelopmentTags: Beginner Clean Code Event Organizing Testing WordPress WordPress Plugins

When is wpautop() going to grow up?

wpautop $pee_* and $tinkle
Posted August 10, 2018October 20, 2024

Every time I look at this function, I wonder when someone will rename the argument and the variables and . The Code Refactoring section in the Contributor Handbook suggests not to focus on style fixes, but I’m not sure if renaming variables is considered refactoring in terms of WordPress. “[Refactoring […]

Category: Web DevelopmentTags: Function Friday WordPress WordPress Function wpautop

I’m Speaking at WordCamp Jackson on Saturday!

Posted August 8, 2018October 20, 2024

After a little over 2 years since my first speaking gig at WordCamp Columbus, I’m getting my head back in the game. I’ll be talking about the “human side” of testing, which I’ve talked about on my blog briefly before (Testing Plugin/Theme Updates & Testing Updates for Your Clients). So come to […]

Category: Open Source SoftwareTags: Events Talk Testing WordCamp WordPress

Another Weird WordPress Mystery

Posted August 4, 2018October 20, 2024

I found this in a theme’s functions.php file: So this function only affects admins who cannot administrator…

Category: Web DevelopmentTags: Mystery WordPress

:before, ::before, :after, ::after – :::wut?

Posted July 30, 2018October 20, 2024

Do you know the difference between single and double colon notation in CSS? “there are now two formats to remember instead of one… some only work with ::, some work with both, now beginner devs need to understand pseudo-classes and pseudo-elements being different terms” Check out the history: Know your […]

Category: Web DevelopmentTags: CSS

Put Google’s Invisible reCAPTCHA on WordPress Login Without a Plugin

Google Invisible reCAPTCHA on WordPress Login
Posted July 26, 2018October 20, 2024

How to Integrate Google Invisible reCAPTCHA on WordPress Login If you’re looking to protect your WordPress site against brute force attacks, you can add features like a CAPTCHA or honeypot on your login page or enable 2-factor authentication. The code below is an example of how to add Google’s invisible […]

Category: Web DevelopmentTags: Security WordPress WordPress Admin wp-login

Posts navigation

Older posts
Newer posts
Links: GitHub LinkedIn
Content Disclaimer