输入类型复选框无法检查

时间:2017-11-08 05:26:46

标签: php wordpress function checkbox input

我创建了一个函数来删除列表中的链接并更改为输入类型复选框,但我的复选框不起作用且无法检查

add_filter ('wpdatatables_filter_link_cell', 'wp_filter_link_cell', 2 );

function wp_filter_link_cell( $formattedValue ){

    $formattedValue = strip_tags($formttedValue);

    return '<input type="checkbox">' . $formattedValue . '</br>';
}

1 个答案:

答案 0 :(得分:0)

此过滤器用于操纵URL链接的值,而不是其输入类型。

wpdatatables_filter_link_cell( $formattedValue, $tableId )
This filter is applied to the value of an URL link column before it is passed to the front-end.This description provided by your plugin.

$formattedValue is the value of the cell.

$tableId is the table identifier from the MySQL table (wp_wpdatatables).

请从插件URL

中详细了解此过滤器
相关问题