Loading scripts & styles from a meta box callback function
Your problem is adding the scripts, styles inside the class, and because the class instance is created when the hook add_meta_box is fired, at that time the wp_enqueue_script/style are already finished. A solution for you is adding the scripts, styles outside the function and the class. And because meta boxes are used only at editing … Read more