• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Twitter GitHub
You are here: Home / Archives for WordPress Plugin

WordPress Plugin

Check WP_DEBUG

Last updated on April 19, 2020 by Sal Ferrarello

Recently I was talking to another developer about how to detect ‘WP_DEBUG’ being set on a WordPress installation. Here is the code I use.

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Dev Tips, Draft, Programming, Solution Tagged With: WordPress, WordPress Plugin

Sending WordPress Emails Through Gmail

Last updated on November 11, 2019 by Sal Ferrarello

Typically, if you’re sending any volume of email or sending emails to visitors you’ll want to use a third-party. Sometimes, you only need to send yourself notifications and are having deliverability problems with these notifications – this is the case, where you may want to send your emails through Gmail’s SMTP.

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Draft, Solution Tagged With: email, SMTP, WordPress, WordPress Plugin

Modern Tribe Events Calendar Replace Default Event Link with Event Website

Last updated on August 23, 2019 by Sal Ferrarello

When using the WordPress plugin [The Events Calendar](https://theeventscalendar.com/) by Modern Tribe the default link in the calendar will point to the Event page. However, sometimes we want to point this link to the Event Website value (which we can set when creating the event). This is the code I use to do this.

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Draft, Programming, Solution Tagged With: The Events Calendar, WordPress Plugin

How to Add a Twitter Hashtag with Scriptless Social Sharing

Last updated on April 24, 2019 by Sal Ferrarello

When using Scriptless Social Sharing, you may want to add a site wide hashtag to all of your tweets. This is the code you can use to do that.

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Draft, marketing, Programming, Solution Tagged With: WordPress Filter, WordPress Plugin

ACF Uncaught TypeError: Cannot read property ‘id’ of undefined

Last updated on April 8, 2019 by Sal Ferrarello

Recently I was working on a site using Advanced Custom Fields (ACF) and the field input boxes had stopped working. In the browser console, I saw the error “ACF Uncaught TypeError: Cannot read property ‘id’ of undefined”.

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Draft, Solution Tagged With: ACF, Advanced Custom Fields, WordPress, WordPress Plugin

Install a non-wordpress.org Plugin with WP CLI

Last updated on November 19, 2018 by Sal Ferrarello

The WordPress plugin repository at wordpress.org/plugins is a great resource. I often use WP CLI to install plugins on my WordPress site from there, however, sometimes I want to install other plugins with WP CLI.

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Dev Tips, Draft, Solution Tagged With: WordPress, WordPress Plugin, wp-cli

Gravity Forms Default Value and Caching

Last updated on September 17, 2018 by Sal Ferrarello

I’m a big fan of the Gravity Forms Form builder WordPress plugin. I came across an interesting issue on a project where I was using the default value functionality and I wanted to make some notes as a warning for others (and myself) in the future.

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Dev Tips, Draft, Programming Tagged With: cache, Gravity Forms, WordPress Plugin

Remove target _blank from the Scriptless Social Sharing Email button

Last updated on August 27, 2018 by Sal Ferrarello

I like to use the Scriptless Social Sharing WordPress plugin to add Share buttons to my blog posts. Recently I had a client notice that because the Email Share button has target=”_blank” in the HTML markup, it opens a new tab when clicked. This is great behavior if you’re using web based email (e.g. Gmail), however if you’re using an email application on your computer, you end up with a blank tab. This code removes target blank from the email share link.

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Draft, Programming, Solution Tagged With: WordPress Filter, WordPress Plugin

Apply Bootstrap Classes to Gravity Forms Button

Last updated on August 9, 2018 by Sal Ferrarello

When working on a project, using Gravity Forms and Bootstrap, I wanted to style the buttons with Bootstrap. This code allows me to modify the markup output by the Gravity Forms WordPress plugin to use the Bootstrap classes.

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Draft, Programming, Solution Tagged With: Bootstrap, Gravity Forms, WordPress Plugin

Photograph of an organizer.

functions.php vs plugin vs mu-plugin for WordPress

Last updated on January 5, 2019 by Sal Ferrarello

It is common for articles on writing WordPress code to refer to adding the code to the functions.php file in the active theme. This is one location where code can be added but it isn’t always the best. Places to Add WordPress Code a new file in wp-content/mu-plugins a new plugin in wp-content/plugins the functions.php […]

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Dev Tips, Draft, Programming Tagged With: WordPress Plugin, WordPress Theme

  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Go to page 4
  • Next Page»

Copyright © 2021 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in