Support » Developing with WordPress » 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 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)
  • You must be logged in to reply to this topic.