How to pass multiple parameter in add_action()
-
I have below code.
add_action( 'admin_init', [$this, 'settings_page_registration'] );
I would like to use
enqueue_assets
function name insideadd_action()
.Should I use like below ?
add_action( 'admin_init', [$this, 'settings_page_registration', 'enqueue_assets'] );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to pass multiple parameter in add_action()’ is closed to new replies.