wp_ajax_rtmedia_bulk_edit. How to add my hook?


#1

Hi, I’ve a problem with wp_ajax_rtmedia_bulk_edit.

That’s my hook:

add_action( ‘wp_ajax_rtmedia_bulk_edit’, ‘add_geodata’,20 ); function add_geodata() { (…) }

Unfortunatly it doesn’t work. What’s wrong?


#2

Hi @Sebastian,

Try using hook priority less than 10.

add_action( 'wp_ajax_rtmedia_bulk_edit',  'add_geodata', 5 ); 
function add_geodata() { (...) }

#3