我试图在类别标题后面显示woocommerce产品类别说明。
我使用![](https://youtu.be/zNzZ1PfUDNk)
hook 并在1>------ Build started: Project: BasicApp.Android, Configuration: Debug Any CPU ------
1>C:\Users\Salvatore Lucania\documents\visual studio 2017\Projects\BasicApp\BasicApp\BasicApp.Android\Fragments\Menu\MenuFragment.cs(47,13,47,34): warning CS4014: Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call.
1> BasicApp.Android -> C:\Users\Salvatore Lucania\documents\visual studio 2017\Projects\BasicApp\BasicApp\BasicApp.Android\bin\Debug\BasicApp.Android.dll
1> Processing: obj\Debug\res\layout\activity_main.xml
1> Alot of other files processed here...
2>Starting deploy Samsung SM-G930F ...
2>Deploying Samsung SM-G930F ...
2>Build started.
2>C:\Program Files\Java\jdk1.8.0_112\\bin\keytool.exe -list -alias androiddebugkey -storepass android -keypass android -keystore "C:\Users\Salvatore Lucania\AppData\Local\Xamarin\Mono for Android\debug.keystore"
2>C:\Program Files\Java\jdk1.8.0_112\\bin\jarsigner.exe -keystore "C:\Users\Salvatore Lucania\AppData\Local\Xamarin\Mono for Android\debug.keystore" -storepass android -keypass android -digestalg SHA1 -sigalg md5withRSA -signedjar bin\Debug\\com.basicapp.droid-Signed-Unaligned.apk "C:\Users\Salvatore Lucania\documents\visual studio 2017\Projects\BasicApp\BasicApp\BasicApp.Android\obj\Debug\android\bin\com.basicapp.droid.apk" androiddebugkey
2>No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2047-05-20) or after any future revocation date.
2>C:\Program Files (x86)\Android\android-sdk\build-tools\26.0.0\zipalign.exe 4 "C:\Users\Salvatore Lucania\documents\visual studio 2017\Projects\BasicApp\BasicApp\BasicApp.Android\bin\Debug\com.basicapp.droid-Signed-Unaligned.apk" "bin\Debug\\com.basicapp.droid-Signed.apk"
2>Build succeeded.
2>Deploy successfully on Samsung SM-G930F
========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========
函数中注入了一些lorem ipsum,但它没有显示。
我该怎么做?
答案 0 :(得分:-1)
我会尝试 woocommerce_after_subcategory_title 挂钩。此外,您的主题可能会修改前端行为,因此您可以尝试使用默认主题测试代码。
如果它适用于默认主题,则需要探索主题中的可用挂钩。