How do I include drag-and-drop in a plugin?

WordPress has a few of these libraries that come with core, you can view the list here: Default Scripts Included and Registered by WordPress. What you’re looking for is Draggable, Sortable, and in your case Droppable. You would use wp_enqueue_script() to add it like so: wp_enqueue_script( ‘jquery-ui-droppable’ ); WordPress registers these scripts using a Handle … Read more

Add Fields with Sub-Fields to WP Job Manager

I see a few things missing in your snippet/code. Each field (your location ones) need to include priority: ‘priority’ => 19, You defined ‘type’ as ‘location’ but did not define that field type. The repeated files in resume manager where you based this code on defines template files for education, experience etc. To define your … Read more

How to remove an Ajax action

The main issue I was having is that when an ajax request hits not all hooks are being loaded. I used this code: $return = array(); foreach( $GLOBALS[‘wp_actions’] as $action => $count ) { $return[“message”] .= $action . “, “; } wp_send_json($return); This showed me the hooks that were running before and I got it … Read more