Skip to main content

Timeline for Proper use of wp_localize_script?

Current License: CC BY-SA 3.0

12 events
when toggle format what by license comment
Apr 10, 2019 at 18:03 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Jun 20, 2016 at 14:34 answer added Pat J timeline score: 0
Jun 20, 2016 at 13:31 comment added user97067 No I can't see it in my source code, but I fail to see how I enqueued it incorrectly.
Jun 20, 2016 at 13:22 comment added user97067 What do you mean it's not enqueued? How should I enqueue it?
Jun 20, 2016 at 13:21 comment added bravokeyl my guess is chart.js is not being enqueued. On the other hand $dataToBePassed is outside the scope of the function , it gives you null.
Jun 20, 2016 at 13:07 history edited user97067 CC BY-SA 3.0
added 73 characters in body
Jun 20, 2016 at 13:02 comment added user97067 Edited with your remarks, but still the same issue. @bravokeyl I think t's being enqueued in the wp_enqueue_script('mygaloochart_script', plugins_url('chart.js', __FILE__), array('googlechart'));
Jun 20, 2016 at 13:01 history edited user97067 CC BY-SA 3.0
deleted 7 characters in body
Jun 20, 2016 at 12:56 comment added bravokeyl Why are you enqueue-ing googlechart outside of the wp_enqueue_scripts action hook?
Jun 20, 2016 at 12:55 comment added bravokeyl wp_enqueue_scripts should be the action name, I guess wp_enqueue_script is the mistake you have done while asking a question.
Jun 20, 2016 at 12:28 review First posts
Jun 20, 2016 at 12:29
Jun 20, 2016 at 12:27 history asked user97067 CC BY-SA 3.0