acp/editing/value

This Filter acp/editing/value filters the value that is used for the Admin Columns Pro inline edit feature. By defaut the Raw value of a column is used as edit value. This filter is mainly used to alter the edit value for columns that are provided by other plugins.

Usage

There are 2 ways to hook into acp/editing/value.

  • acp/editing/value – filter for every column
  • acp/editing/value/[column-type] – filter for a specific column-type
/**
 * @param mixed     $value
 * @param int       $id
 * @param AC_Column $column
 *
 * @return mixed
 */
function my_cac_get_editable_column_value_seo_title( $value, $id, $column ) {

	// Do check for specific column by using the AC_Column object
	// Alter the value if needed for the specific post_id

	return $value;
}

add_filter( 'acp/editing/value', 'my_cac_get_editable_column_value_seo_title', 10, 3 );

Legacy

The following filters are replaced by the new filter acp/editing/value since Admin Columns 4.0.
cac/editable/column_value
cac/editable/column_value/column={$type}