Skip to content

Tag: php

How to get all checkout fields from WooCommerce?

I like to get all available checkout fields, including third party ones: returns a fatal error: Is there an offical way to get them? Edit: My plugin needs a dropdown field with all available checkout fields on the backend. What I like to have is an array like this (I var_dump the $checkout_fields variable of …

Yii – findAll with order by

How to findAll with specific column with order by desc ? Code bellow worked and find all from the developer id $id = Yii::app()->user->getState(‘id’); $models = Games::model()->findAll(‘…

assigning variables to sql query result

Amateur here, just practicing some sql. I am trying to assign php variables to my sql query results, and I thought I saw it work in this fashion, but it doesn’t seem to be working for me: $query1 = …