post_author; // } else { $user_id = 0; } return $user_id; } /* * get the anker user id * return 0 if not found * */ function get_anchor_id($anchor_name) { $option_anchor = Custer::OPTION_ANCHOR; error_log("anchor_name:"); error_log($anchor_name); $anchors = get_option($option_anchor); error_log("anchors:"); error_log(json_encode($anchors)); if ($anchors === false) { error_log("anchors === false"); return 0; } if (isset($anchors[$anchor_name])) { $user_id = $anchors[$anchor_name]; } if (empty($user_id)) { return 0; } return $user_id; } ?>