Unlike the registration_errors filter, there’s not a lostpassword_errors filter… but there is another filter you can use instead!
I spent a couple of hours of searching and another one debugging attempting to find a WordPress filter for errors like the:
ERROR: Invalid username of email.
that appears on the lost password page. Since there’s a
registration_errors filter, I thought
lostpassword_errors or something close to it would be available. Nope. Continue reading “WordPress lostpassword_errors Filter”
Bring the power of Facebook to your application using the Facebook PHP SDK — a powerful library allowing you to retrieve user information, publish to profiles, enable Facebook registrations, logins and more!
This post was originally published on May 30, 2014 and last updated March 9, 2018.
The Facebook PHP SDK is a powerful library that allows developers to easily integrate Facebook login and make requests to the Graph API. In this post, we’ll go over how to install, initialize and perform operations like posting to timelines, user registrations, logins and more!
Continue reading “Facebook PHP SDK — a simple guide!”
Learn how load CSS & JS files based on conditionals like url, node type, module, views & more!
This post was originally published on May 22, 2013 and last updated March 8, 2018 thanks to some helpful input by Steve Elkins.
Drupal 7 is a haus at combining CSS & JS files. This can help boost page performance & optimization easily, but if not used right, can do the complete opposite. In this post, we’ll go over how to load JS & CSS files based on conditionals like URL, module, node, views and more.
Before we dive in, get somewhat familiar with the
drupal_add_css functions. We’ll use these to load the actual JS and CSS files. Continue reading “Load JS & CSS Conditionally in Drupal 7”
Creating a WordPress plugin where you need to create templates that can be overridden by the theme? Learn how to build a template loading system similar to WooCommerce allowing you to do just that!
If you’ve ever worked with WooCommerce theming, you’ve probably had to copy some of their templates files to your own theme in order to override the HTML. It’s a great system that allows frontenders the ability to change the output to match designs. In this article, I’ll walk you through how to do just that — easily add WordPress plugin template files.
Just wanna get straight to the code? Click here. Continue reading “Add WordPress Plugin Template Files”
Create Drupal 7 menu links with empty titles! With Drupal’s hook_menu_link and <none>, create icon links & other styled links that have no text.
One of my biggest pet-peeves is creating Drupal 7 empty menu link titles since there’s no out-of-the-box solution. As a result it can be difficult to create stylized links, such as icons or background images. After many frustrating sessions I finally sat down to find a way to make this happen. Consequently, I began to think this was an impossibility and was unable to find a solution already in existence that did exactly what I needed it to do. However, Drupal 7 empty menu link titles are absolutely possible with just this one little snippet! Have no fear, theme_menu_link to the rescue! Continue reading “Drupal 7: Empty Menu Link Titles”