WordPress add_action() Function name reference callback


Example

function my_init_function() {
    // do something here
}

add_action( 'init', 'my_init_function' );

Using the name of the function to hook a set of instructions. With the init hook, the set of instructions will be executed right after wordpress has finished loading the necessary components.