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!
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.
Need an array of user roles in your Drupal 8 site? Say goodbye to user_roles(), say hello to user_role_names(). This function will return an associative array with the role id as the key and the role name as the value.
Looking for how to create new module permissions in Drupal 8? Look no further, $module.permissions.yml to the rescue! In Drupal 8 permissions are now defined in $module.permissions.yml file instead of using hook_permission().
Boost the performance of your Drupal 7 website, improve usability and help with SEO by making content load via AJAX in just a few steps. Drupal AJAX is a cinch to implement—as it should be since core is loaded with it. In just a few of steps I’ll show you how to use jQuery and … Read article