Questions tagged [enqueue]
102 questions
0
votes
2 answers
Enqueueing jQuery plugin in Wordpress theme template
I made a template called test-stuff.php and tried using jQuery and the jQuery validation plugin in it. I've enqueued the scripts in my functions.php file and the jQuery works fine on other regular pages, but not in my template.
Could someone point…

Zae
- 47
- 9
0
votes
3 answers
Wordpress plugin development - Load the enqueued files only where we need them
I have developed 2 Wordpress plugins and I'm trying to load the needed css and js files in admin only where I need them.
I have written a function:
function ds_shortcodes_enqueue() {
$shortcodes_pages = array(
"shortcodes_plugin",
…

user4419473
- 67
- 1
- 9
0
votes
1 answer
What is the proper way to make a queue inside a class?
I'm trying to make a queue of orders for my clients.
But the last added value replace all the values in the queue.
Debbuging the code i've see that when a value is enqueued it overrides all the other values in the queue.
class Program
{
…
0
votes
2 answers
How to enqueue one script after another in WordPress `functions.php`, and have them both work together?
I have 2 .js files, the first is plugins.js and, the second, ui.js, and both are visible on the 'debug' of the inspector, so both are being included.
I have a jquery function in plugins.js that I need to call on in ui.js, so I enqueue plugins.js…

sai
- 31
- 7
0
votes
1 answer
WordPress stylesheet versioning - how to verify?
I'm developing a WordPress site, and want to include auto-versioning of the main stylesheet so users will always download the newest CSS file version whenever changes are made.
To do that, I'm using the method here…

supernaut
- 311
- 3
- 11
-1
votes
1 answer
Get a file from path where file name LIKE
I am developing a WordPress that utilises gulp to build the frontend of the application (scss, js) files.
In my functions.php I am using enqueue to load my css and js so that they can be used in the editor.
add_action( 'enqueue_block_editor_assets',…

JamesS
- 2,167
- 1
- 11
- 29
-1
votes
1 answer
using Retrofit enqueue calls getting problem
getting this error for enqueue for kotlin android and it is showing Unresolved reference: enqueue
my code
class NewsActivity : AppCompatActivity() {
private lateinit var mRecyclerView: RecyclerView
private lateinit var mProgressBar:…
-1
votes
1 answer
What operations would you use for implementing a priority queue PQ with enqueue and dequeue?
Assume that you are implementing a priority queue PQ that returns the max element on dequeue operation.
If we use a max heap to implement the PQ, enqueue is O(______) operation, and dequeue is O(_____) operation
Could someone please answer/explain…
-1
votes
1 answer
OkHttp client.newcall(request).enqueue ... getting null pointer
I am trying to set var json, but i get null pointer in the end. any ideas how to fix this ? still newbie with android
class Requester(activity: Activity) {
...
var json : Info? = null
...
fun getData (counter : Int) {
…

Tobias
- 161
- 12
-2
votes
1 answer
Enqueue a directory in audacious from nautilus right click
I am trying to make enqueue a directory in audacious. For that I want to make a shell script which will take the input I am giving as the directory to enqueue. find . -iname \*.mp3 -print0 | xargs --null audacious --enqueue this will enqueue all the…

Praveen
- 139
- 1
- 10
-3
votes
2 answers
What is the Big O for this enqueue method?
I wrote code for an enqueue method in a singly linked list and I'm wondering if anyone can tell me the Big O is for this code. I at first assumed it was O(n) because of the loop. However, the loop will always iterate a specific number of times…

GeRmAnImAl
- 1
- 3
-3
votes
1 answer
Is there a way to enqueue a variable?
I've been trying to do it for the past hour but I'm confused about it. This is what I've been trying so far but it doesn't seem to work no matter what I try.
def main():
q = queue.Queue()
name = input("Enter the person's name: ")
…