function get_paypal_info($post_id = false) { if ($post_id === false) { global $post; $post_id = $post->ID; } $ret = SimplePayPalPluginAdmin::get_paypal_meta($post_id); if (empty($ret["price"])) { return false; } else { return $ret; } }