Tag Info

New answers tagged

0

When we are outside the Sample namespace, we should call the function by \Sample\sp_activate(), so please try the following: <?php /** * Plugin Name: Sample Plugin * Version: 0.0.2 */ namespace Sample; \register_activation_hook( __FILE__, '\Sample\sp_activate' ); function sp_activate() { } If something is printed out during the plugin ...



Top 50 recent answers are included