Skip to content

Instantly share code, notes, and snippets.

View mshshuvooo's full-sized avatar
🏠
Working from home

Shahadat Shuvo mshshuvooo

🏠
Working from home
View GitHub Profile
@mshshuvooo
mshshuvooo / acf-select-wc-attributes.php
Created October 13, 2021 13:59 — forked from vdwijngaert/acf-select-wc-attributes.php
Populate ACF Select Field with WooCommerce Attributes.
<?php
/**
* Populate ACF Select Field with WooCommerce Attributes.
*/
add_filter('acf/load_field/name=featured_attributes', function($field) {
$taxonomies = get_taxonomies([
'public' => false,
'_builtin' => false
], 'objects');
[
{
"id": 1,
"name": "Maymie Morissette",
"tours": [
{
"id": 1,
"client_id": 1,
"tour_date": "2005-02-03 01:02:24",
"properties": [
{
"tours": [
{
"id": 1,
"client_id": 1,
"tour_date": "2005-02-03 01:02:24",
"properties": [
{
"id": 63,
"name": "562 Gibson Stravenue Suite 502",