Getting fatal error when using manage_media_columns filter of WordPress

It looks like the issue is coming because of the conflict of the hooks (manage_media_columns and manage_{$screen->id}_columns) because when we manage_{$screen->id}_columns used for media it becomes manage_media_columns and started conflicting. The same details are mentioned in the documentation link of the hook. Link: https://developer.wordpress.org/reference/hooks/manage_screen-id_columns/#more-information

Does a wordpress custom plugin is fired by default on php theme ajax request?

This will never work: add_action( ‘admin_init’, ‘my_ajax_checker’, 10, 2); function my_ajax_checker() { if( wp_doing_ajax() ) { add_action(‘plugins_loaded’, ‘atv_convert_multilingual’); } } This is because by the time admin_init runs, plugins_loaded has already happened! Making this code would would require the code to travel backwards in time. Instead it would be much simpler to do this: add_action(‘plugins_loaded’, … Read more