Skip to main content
A White Pixel
  • WordPress Gutenberg Developer’s Guide
  • Latest Posts
    • WordPress
    • Gutenberg
    • Themes
    • WooCommerce
    • Gravity Forms
    • Advanced Custom Fields

Tag: hooks

How to Add Custom Settings to an Existing Widget in WordPress

In this post we’ll learn how to add your custom HTML and settings to any of WordPress’ standard widgets or others. Using those settings we’ll learn different tricks in how to manipulate the widgets behaviour accordingly. The first part; adding and saving your custom settings, is fairly easy. The second part depends on what specifically […]

Gravity Forms: Add Custom Inputs to Fields and Remote Post after Submission

In this Gravity Forms tutorial we’ll learn three things: How to add a custom input to any field type of your choice How to add custom settings to your form And finally how to remote post submitted values for specific fields after each form submission. This post assumes that you want to add functionality to […]

Guide on How to Add Custom Fees to WooCommerce Checkout by Code

There are some cases when you might need to add a fee to the cart totals. Sometimes only if a certain condition is met, for example depending on the cart totals or shipping location. With WooCommerce adding a fee is pretty easy – much easier than adding a discount in fact. In this post we’ll […]

How to Add Custom Fields and Tabs into WooCommerce Product Data Metabox by Code

In this post we’ll learn how to add your custom meta fields into WooCommerce’s Product data metabox; how to add fields and also how to add your own custom tab. We’ll go into detail about how to add your fields, where to add them, how to save them, and finally how to display them in […]

How to Modify or Add Custom Columns to Post List in WordPress Admin

WordPress allows you to modify and add columns to the list of posts, pages or any custom post type in admin panel. In this post we’ll look into how! There are two hooks to consider: one filter for the column’s position and heading, and one action for the column’s output for each post. The post […]

Guide: Customize WooCommerce Checkout Fields by Code

In this post you’ll learn how to change, remove or reposition default checkout fields in WooCommerce, and how to add your own custom field. The checkout fields filter WooCommerce offers a filter for all checkout fields: woocommerce_checkout_fields. There is also dedicated filters for billing and shipping fields; woocommerce_billing_fields and woocommerce_shipping_fields but they both end up […]

WordPress Theme Tutorial for Beginners – Part 7: Theme Setup and Featured Images

This lesson of the WordPress theme tutorial for beginners continues by adding the basic, required code for theme setup. We learn to add theme supports, and as a result of that WordPress’ featured image functionality gets activated. In this lesson we’ll also fix the frontpage title by applying our first filter. We will work mostly […]

WordPress Theme Tutorial for Beginners – Part 6: A Theme’s Functions.php

Today we will learn where and how to add code outside the templates in our theme. We do this by adding the theme’s functions.php file. Along the way we’ll also learn how to add your stylesheets and scripts the proper way. A theme’s functions.php file A theme needs somewhere to place code that is not […]

Coding for WooCommerce: An introduction

This is a beginner developer’s introduction to the plugin WordPress WooCommerce. In this post we’ll look at the basics of how WooCommerce works and how we can customize it in our theme or plugin using hooks and templates. First off, WooCommerce offers great flexibility for theme and plugin developers to adjust its functionality. For simple […]

WordPress Theme Tutorial for Beginners – Part 3: Dynamic Content

In this lesson of the WordPress theme tutorial for beginners we will learn about hooks in WordPress and add a few hooks in our theme that is required for a theme to work properly with WordPress and plugins. We will also start accessing dynamic content from WordPress in our header, such as automatically getting the […]

Posts navigation

1 2 Next »

Categories

  • Advanced Custom Fields (7)
  • Gravity Forms (5)
  • Gutenberg (31)
  • Mini Tips (3)
  • Themes (30)
  • WooCommerce (9)
  • WordPress (37)

Newest Posts

  • How to Translate custom Gutenberg Blocks with block.json
  • Creating Custom Gutenberg Blocks with block.json
  • Gutenberg: Updating withSelect and withDispatch into React Hooks (useSelect and useDispatch)
  • How to Add Post Meta Fields to Gutenberg Document Sidebar
  • In-Depth Guide in Creating and Fetching Custom WP REST API Endpoints
  • How to Deprecate Gutenberg Blocks

Tags

admin (5) ajax (2) cpt (4) css (4) filters (10) hooks (12) i18n (3) javascript (28) media (1) menus (6) object-oriented (2) plugin customization (20) post query (5) rewrite url (3) scripts and styles (6) seo (3) theme (17) widgets (3) WP REST API (2)