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

Tag: filters

How to Create a Custom Advanced Search Template in WordPress

This guide is for you who have a custom post type (CPT) and want an advanced search page that searches for results within this CPT. In the search form you can set up different inputs for searching within different fields; post title, post content, any type of custom meta or by custom taxonomy. In this […]

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 […]

Complete Guide: How to Dynamically Populate Fields in Gravity Forms

Building simple or complex forms in Gravity Forms is easy and quick. One of the functionality Gravity Forms offers is allowing you to conditonally pre-select or pre-fill in fields in a form. This is useful when you have the same form on multiple contact pages for each department, and want to preselect the corresponding department […]

How to Change Common WooCommerce Texts with Code

WooCommerce is chock-full of filters, hooks and functions to help you customize and utilize the plugin in your theme or plugin. Here are some small, but useful, code examples, a-ha’s and how-tos of common changes of different text outputs. Changing “Add to cart” button texts There are two filters; one for “add to cart” texts […]

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 […]

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 […]

Guide: Change Prices in WooCommerce by Code

This post is for you who want to add code that adjusts the prices in your WordPress WooCommerce webshop. You can either increase the prices or discount them. And how and from where the adjustments come, depend entirely on your case. Your webshop could operate with percentage discounts set on each registered user, a custom […]

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 […]

Guide: All about Hooks in WordPress

Ever been told the solution to your problem is that you need to “hook onto” something to do your thing or used add_filter without really understanding why it messes stuff up? Hooks make up the foundation of WordPress and provides themes and plugins a way to interact or modify code. In this post we’ll break […]

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)