WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Pretty straightforward question!

What does wp-list.js do?

It's listed in the wp_enqueue_script codex page as one of the WP included javascript libraries.


share|improve this question
up vote 5 down vote accepted

This file is for list manipulations with jQuery: add, delete or dim list items. It was introduced in Ticket #4805 to replace some prototype code.

Attached to the ticket is a sample plugin which holds the actual documentation. It doesn’t work really good … line 461 should be:

    $id = isset ( $_POST['id'] ) ? (int) $_POST['id'] : 0;

But at least you can test what the code really does in a reduced example.

enter image description here

The readable code for the file is in wp-includes/js/wp-lists.dev.js.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.