WordPress add_action() Direct function callback


Example

add_action( 'init', function() {
    // do something here
} );

Using a function block 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.