Cute File Browser In Wp Plugin - Wp_get_current_user Error
I'm still trying to use Cute File Browser into a WP Plugin: after solved all the issue I'm banging my head with the wp_get_current_user. The plugin is made from a main.php: add_sho
Solution 1:
You can't access wordpress functions inside scan.php as this file is working as a standalone file as it is called through ajax.
If you want to use wordpress functions then you need to call ajax the right way.
Check this link: https://codex.wordpress.org/AJAX_in_Plugins
Post a Comment for "Cute File Browser In Wp Plugin - Wp_get_current_user Error"