• I have below code.

    
    add_action( 'admin_init', [$this, 'settings_page_registration'] );
    

    I would like to use enqueue_assets function name inside add_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.