Author: corey

  • How to convert a Network Active plugin to active on each site

    WordPress multisite allows plugins and themes to be Network Active. This prevents them from being deactivated on any site in the network. To change a plugin from Network Active on every site to individually active on each site: Manually Network Deactivate the plugin from the network plugins page. The wp network command does not yet […]

  • Akismet Alternatives

    Blocking spam on WordPress websites is heavy work. Akismet comes pre-installed on every site, but it’s not free for businesses or the only way to stop spam. OOPSpam https://www.oopspam.com/ CleanTalk https://cleantalk.org/ Stop Forum Spam https://www.stopforumspam.com/ Project Honey Pot https://www.projecthoneypot.org/ Zero Spam https://www.zerospam.org There are a ton of anti-spam WordPress plugins. The criteria for this list […]

  • TypeError: c is not a function

    If you’re building blocks for WordPress, and the error TypeError: c is not a function is logged in your browser’s developer console, you may have created a TextControl component and failed to include both value and onChange attributes. This code will cause the error: This is a correct syntax:

  • Gravity Forms confirmation not working. Instead, “Thanks for contacting us! We will get in touch with you shortly.”

    If you see the default “Thanks for contacting us! We will get in touch with you shortly.” even if you’ve created a custom confirmation for your Gravity Form, your entry may have been marked as spam. All entries deemed spam are shown the default message. Login and try again–logged in users will not get caught […]

  • TypeError: b.map is not a function

    If you’re building blocks for WordPress, and the error TypeError: b.map is not a function is logged in your browser’s developer console, you may have created a SelectControl component and failed to wrap the options in brackets to create an array. This code will cause the error: This is the correct syntax:

  • Router Circle Jig Calculator

    Two pieces of half inch plywood with circles cut in them, one large and one small

    I recently gifted myself a Bosch 1617EVSPK router, and the first project is mounting it to a old Craftsman 171.253512 router table that came with the used contractor table saw I bought myself for my 37th birthday. An adapter plate is needed. None of the threaded mounting holes on the fixed router base line up […]

  • Trouble with PHP versions after migrating to an M1 Macbook

    I migrated a Time Machine backup from a 2015 Intel High Sierra to a 2021 M1 Monterey. I love the computer, and the migration was largely a success. I use Laravel Valet to run and develop local websites. They break every time I restart the new machine. php -v from Terminal always returns 8.0, but […]

  • Gravity View is_approved enumeration

    Entry approval is a Gravity View feature I use often. Even if I’m not using Gravity View on a project that needs to filter out some entries, I’ll save the same data in the $wpdb->_gf_entry_meta table to be compatible. The meta key is_approved contains one of the values in the table below. Entry is_approved meta […]

  • Mimic the WordPress.org developer reference for your project

    I replicated wordpress.org’s code reference system for my own project. WordPress provides a template tag get_the_title() and it’s documented at https://developer.wordpress.org/reference/functions/get_the_title/. A plugin I just launched provides a template tag invp_get_the_price() and it’s documented at https://inventorypresser.com/docs/reference/functions/invp_get_the_price/ I learned that the .org docs page content is generated by scanning the project source code, extracting PHPDoc comments, […]

  • Entries To Google Sheet, an add-on for Gravity Forms

    I built a WordPress plugin that saves a copy of all Gravity Forms entries in a Google Sheet as they are received. Entries to Google Sheet is the glue between a Gravity Form and a Google Sheet. https://entriestogooglesheet.com

  • ACF get_fields() not working but get_field() does

    This is confusing: calls to get_fields() find no Advanced Custom Fields values saved with a specific post, but calls to get_field() find values for the same post. This happens when ACF did not insert the field values, and the secondary value with the meta_key beginning with an underscore does not exist. The post has the […]

  • Troubleshooting VS Code, xDebug, and Laravel Valet on macOS

    Problem: xDebug is not showing up in phpInfo() output Run <?php phpInfo(); in a browser and look for “with Xdebug” like is shown near the bottom left of this screenshot: There’s also a large section of xDebug settings near the bottom of the page. Here’s mine: If you do not see xDebug in these locations […]

1 2 3 9
Next Page