|
@@ -27,12 +27,12 @@ if (!class_exists("plug_wookook")) {
|
|
add_role("suspenderet-abonnent", "Suspenderet abonnent", array('read' => true, 'level_0' => false));
|
|
add_role("suspenderet-abonnent", "Suspenderet abonnent", array('read' => true, 'level_0' => false));
|
|
add_role("betalende-abonnent", "Betalende abonnent", array('read' => true, 'level_0' => true));
|
|
add_role("betalende-abonnent", "Betalende abonnent", array('read' => true, 'level_0' => true));
|
|
|
|
|
|
- add_action('manage_users_custom_column', array(&$this, 'imel_custom_column_userfield'), 15, 3);
|
|
|
|
- add_filter('manage_users_columns', array(&$this, 'imel_column_userfield'), 15, 1);
|
|
|
|
|
|
+ add_filter('manage_users_custom_column', array(&$this, 'imel_custom_column_userfieldx'), 13, 3);
|
|
|
|
+ add_filter('manage_users_columns', array(&$this, 'imel_column_userfieldx'), 13, 1);
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- function imel_column_userfield($defaults) {
|
|
|
|
|
|
+ function imel_column_userfieldx($defaults) {
|
|
|
|
|
|
$defaults['abostatus'] = __('Abo Status', 'id-column');
|
|
$defaults['abostatus'] = __('Abo Status', 'id-column');
|
|
$defaults['aboproduct'] = __('Abo Product', 'id-column');
|
|
$defaults['aboproduct'] = __('Abo Product', 'id-column');
|
|
@@ -41,7 +41,7 @@ if (!class_exists("plug_wookook")) {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- function imel_custom_column_userfield($value, $column_name, $id) {
|
|
|
|
|
|
+ function imel_custom_column_userfieldx($value, $column_name, $id) {
|
|
if ($column_name == 'aboproduct') {
|
|
if ($column_name == 'aboproduct') {
|
|
$burl = get_option($this->pluginname . "_wookook_baseurl_product");
|
|
$burl = get_option($this->pluginname . "_wookook_baseurl_product");
|
|
$pid = get_user_meta($id, 'abo_prod', true);
|
|
$pid = get_user_meta($id, 'abo_prod', true);
|
|
@@ -71,6 +71,7 @@ if (!class_exists("plug_wookook")) {
|
|
$s = get_user_meta($id, 'abo_status', true);
|
|
$s = get_user_meta($id, 'abo_status', true);
|
|
return $s;
|
|
return $s;
|
|
}
|
|
}
|
|
|
|
+ return $value;
|
|
}
|
|
}
|
|
|
|
|
|
function xx__update_custom_roles() {
|
|
function xx__update_custom_roles() {
|