What does wp-list.js do?

Pretty straightforward question!

What does wp-list.js do?

Read More

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

Thanks!

Related posts

Leave a Reply

1 comment

  1. 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.