*/ if ( !defined( 'WPINC' ) ) { die; } /** * Builds page for doing bulk actions * * @param array $ids Ids of activities selected * @param string $type The type of bulk action * @param string $header Header for the bulk action page * @param array $names Names of the selected activities * @param string $value Values for input fields * @return string Page for doing bulk actions */ function activities_bulk_action_page( $ids, $type, $header, $names, $value = '' ) { global $wpdb; $current_url = ( isset($_SERVER['HTTPS'] ) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; $current_url = remove_query_arg( 'action', $current_url ); $current_url = remove_query_arg( 'item_id', $current_url ); $output = '