Relative Content

Tag Archive for phpwordpresshook

WordPress : how to create onglet and remove it when only one

I have two extensions : Core where there all the common files and Wooster extension in Wordpress.
In Wooster extension I have WoosterPartnerSetup.php and in the Core WoosterSetup.php.
I am trying to to remove the onglet if there is only one but I want the onglet to appear if there are more than 2.

Userdata array or not?

i’m using a hook to send sms to customer phone and admin phone after form submit…
In user metadata i’d stored a radio button with “allow sms notification” , so the user can choose if receive them..
now.. the value stored is in array but…