dashed-slug.net › Forums › Full Node Multi Coin Adapter extension support › How to debug this ? › Reply To: How to debug this ?
June 11, 2018 at 8:30 am
#3239
alexg
Keymaster
Hi,
My apologies. This is my fault.
You cannot hook to the wallets_multiadapter_coins
filter from a theme because it runs before any themes are loaded.
You have two options:
- Enter your data into
assets/coins.csv
. This is not ideal because if there is an update to the multiadapter your csv file will be overwritten. But this can be a way to quickly move forward for now. - The best course of action would be to take the code you have and wrap it into a plugin. This is very simple:
- Create a new PHP file
- Add some headers as shown here
- Paste your code beneath the headers
- Copy the PHP file into your
wp-content/plugins
directory - Go to Plugins and activate your plugin.
Thank you for reporting this problem. I will update the online instructions today.
kind regards
Alex