ARTICLE AD BOX
<?php
/*
Plugin Name: Test Init Hook Plugin
*/
add_action('init', 'my_custom_init_function');
function my_custom_init_function() {
error_log('Init hook triggered');
}
I am learning WordPress plugin development and working on a custom plugin.
I am trying to use the init action hook to run a function when WordPress initializes, but the function does not seem to execute.
The plugin is activated successfully and no PHP errors are shown.
