返信先: 会員情報ページのカスタマイズ

フォーラム 使い方全般 会員情報ページのカスタマイズ 返信先: 会員情報ページのカスタマイズ

#72760
JunichiK
参加者

yskysmr様、ご返信ありがとうございます。

当方のスキルが低いため、正直よく分かりません。
試しに下記のようにしてみましたら、不要な列の削除は出来ましたが、表の内容が反映されませんでした。

add_filter( 'usces_filter_history_cart_row', 'my_filter_history_cart_row', 10 ,5 );
function my_filter_history_cart_row() {
$args = func_get_args();
list($history_cart_row, $umhs, $cart_row, $i, $materials) = $args;

			$history_cart_row = '<tr>
				<td>' . ($i + 1) . '</td>
				<td>';
			$cart_thumbnail = '<a href="' . get_permalink($post_id) . '">' . wp_get_attachment_image( $pictid, array(60, 60), true ) . '</a>';
			$history_cart_row .= apply_filters('usces_filter_cart_thumbnail', $cart_thumbnail, $post_id, $pictid, $i, $cart_row);
			$history_cart_row .= '</td>
				<td class="aleft"><a href="' . get_permalink($post_id) . '">' . esc_html($cartItemName) . '<br />' . $optstr . '</a>' . apply_filters('usces_filter_history_item_name', NULL, $umhs, $cart_row, $i) . '</td>
				<td class="rightnum">' . usces_crform($skuPrice * $cart_row['quantity'], true, false, 'return') . '</td>
				</tr>';
			$materials = compact( 'cart_thumbnail', 'post_id', 'pictid', 'cartItemName', 'optstr' );

return $history_cart_row;
}

引数や変数の宣言を加えたりも試行錯誤してみましたが、うまくいきません。
ご教示のほどよろしくお願いいたします。