Closed JoyceBabu closed 4 years ago
Shall I create a PR fixing this and #5?
@JoyceBabu sure
The path to settings.css
and settings.js
are still incorrect. It is missing the admin
directory in the path.
assets/build/js/admin/settings.js
and assets/build/css/admin/settings.css
.
@JoyceBabu Thank you for your attention to detail. Also, I think the Setting name is incorrect for this class. I want to rename to SettingsPage this better describes this class.
I had gone through a few plugins including this one and Google Site Kit to get a better idea on how to properly structure a Wordpress plugin that I am developing.
Also, I think the Setting name is incorrect for this class. I want to rename to SettingsPage this better describes this class.
I too thought so. In my case, I have created an Admin
class for handling the generic admin stuff, and a separate Settings
class to handling the settings page. SettingsPage
sounds better.
Looks like you missed one 😀
assets/build/js/admin/settings.js
The compiled file path is
assets/build/js/main.js
and notassets/js/build/main.js
https://github.com/wppunk/WPPlugin/blob/c837f32bb937f27957b27efca387d824373eaed5/src/Front/Front.php#L58
Similarly, the path to the css file is also incorrect.