add_action in namespace not working

I decided to namespace my plugin, and I got it all to work, except in my main plugin file. I added two actions in that plugin, before calling the init method of the plugin. <?php namespace myPlugin; add_action( ‘admin_init’, ‘add_activation_notice’ ); function add_activation_notice() { add_action( ‘admin_notices’, ‘activation_notice’ ); } function activation_notice() { echo ‘Notice!’; } … Read more