$transients_help['title'], 'content' => $transients_help['content'], 'target' => 'wphc-btn-transients-help', ), array( 'title' => $autoload_help['title'], 'content' => $autoload_help['content'], 'target' => 'wphc-btn-autoload-help', ), ); $js = ''; foreach ( $pointers as $pointer ) { $js .= sprintf( 'wphc_do_pointer("%1$s", "%2$s", "%3$s");', $pointer['title'], $pointer['content'], $pointer['target'] ); } echo ''; } }