How to pass argument to add_action while the method is inside a class?

Here’s another example on how you could implement the add_action:

$type="my_sample_type";

add_action(
    'init',
    function() use ( $type ) {
        MyClass::make( $type );
    }
);

techhipbettruvabetnorabahisbahis forumuedusedusedusedueduseduedusedusedusedu